Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2024 Changes in this version + type Comp struct + func Component(options ...Option) *Comp + type Context interface + Data func() interface{} + Emit func(event string, args ...interface{}) + Get func(field string) interface{} + Go func(method string, args ...interface{}) + Set func(field string, value interface{}) + type Option func(*Comp) + func Computed(name string, function interface{}) Option + func Computeds(functions ...interface{}) Option + func Data(data interface{}) Option + func El(el string) Option + func Method(name string, function interface{}) Option + func Methods(functions ...interface{}) Option + func Props(props ...string) Option + func Sub(element string, sub *Comp) Option + func Template(tmpl string) Option + func Watch(field string, function interface{}) Option + type ViewModel struct + func New(options ...Option) *ViewModel + func (vm *ViewModel) Data() interface{} + func (vm *ViewModel) Emit(event string, args ...interface{}) + func (vm *ViewModel) Get(field string) interface{} + func (vm *ViewModel) Go(method string, args ...interface{}) + func (vm *ViewModel) Set(field string, value interface{})