Given an instance of Vue, stored into a variable const vm = new Vue(/*...*/), you can inspect and interact with it.
Properties of a Vue instance
vm.$data | the data object associated to the instance |
vm.$props | the props the instance has received |
vm.$el | the DOM element to which the instance is bound |
vm.$options | the object used to instantiate the Vue instance |
vm.$parent | the parent instance |
vm.$root | the root instance (if this is the root instance, this points to itself) |
vm.$children | an array of children instances |
vm.$slots | an array of the associated slots contained in the template |
vm.$scopedSlots | an array of the associated scoped slots |
vm.$refs | an object that contains a property for each element pointed by a ref attribute defined in the template |
vm.$isServer | true if the Vue instance is running on the server (useful in server-side rendering) |
vm.$attrs | an object of attributes that are provided to the component but not defined as props |
vm.$listeners | an object of v-on event listeners assigned to the component |