Instance Properties

vm.$el

The DOM element that the Vue instance is managing. Note that for Fragment Instances, vm.$el will return an anchor node that indicates the starting position of the fragment.

vm.$data

The data object that the Vue instance is observing. You can swap it with a new object. The Vue instance proxies access to the properties on its data object.

vm.$options

The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:

1
2
3
4
5
6
new Vue({
customOption: 'foo',
created: function () {
console.log(this.$options.customOption) // -> 'foo'
}
})

vm.$parent

The parent instance, if the current instance has one.

vm.$root

The root Vue instance of the current component tree. If the current instance has no parents this value will be itself.

vm.$children

The direct child components of the current instance.

vm.$

An object that holds child components that have v-ref registered. For more details see v-ref.

vm.$$

An object that holds DOM elements that have v-el registered. For more details see v-el.

Meta Properties

Instances created by v-repeat will also have some meta properties, e.g. vm.$index, vm.$key and vm.$value. For more details, see the guide on using v-repeat.