Add parsing of a Vue Instance
Summary
When using a Vue instance, data object is used as Vue’s reactivity system.
Vuedoc Parser should be able to correctly parse a Vue Instance definition.
Example
/**
* A Vue Instance description
*/
export default new Vue({
data: {
newTodoText: '',
visitCount: 0,
hideCompletedTodos: false,
todos: [],
error: null
},
created: function () {
this.$emit('created')
}
})
References
- Vue Instance doc: https://vuejs.org/v2/guide/instance.html