- Type:
HTMLElement
- Read only
The DOM element that the ViewModel is managing.
- Type:
Object
The data object that the ViewModel is observing. You can swap it with a new object. The ViewModel proxies access to the properties on its data object.
- Type:
Object
The instantiation options used for the current ViewModel. This is useful when you want to include custom properties in the options:
new Vue({
customOption: 'foo',
created: function () {
console.log(this.$options.customOption) // 'foo'
}
})
- Type:
Object
- Read only
An object that holds child ViewModels that have v-ref
registered. For more details see v-ref.
- Type:
Number
The Array index of a child ViewModel created by v-repeat
. For more details see v-repeat.
- Type:
Object ViewModel
- Read only
The parent ViewModel, if the current ViewModel has one.
- Type:
Object ViewModel
- Read only
The root ViewModel. If the current ViewModel has no parents this value will be itself.
- Type:
Object Compiler
- Read only
The Compiler instance of the ViewModel. This object maintains some internal state of the ViewModel such as data bindings and in most cases you should avoid touching it.