-
Notifications
You must be signed in to change notification settings - Fork 5
Instance Methods
guankaishe edited this page May 20, 2015
·
5 revisions
Set a data value on the Vue instance given a valid keypath. If set value to an it will throw error.
Get a data value with specified keypath.
- keypath
String
Optional
- callback(nextValue, preValue)
Function
Listen change of the viewModel instance, if keypath is given it will invoke when change with the same keypath.
Unlisten changes of the viewModel instance with specified callback function.
- el
Element
- scope
Object
Optional
Compile sub-template of current viewModel.
Get compoent constructor in the scope of current viewModel.
Destroy current vm. All instance properties and methods will be free.