0👍
The id is only set when you make the component globaly available in the parent by using the Vue.component('id', {...})
command. The name is an optional part of a component.
The given solution in the issue with Vue.component('id', Vue.extend({...}))
seems to be worth a try.
- [Vuejs]-Vue.js – on click collapse the nearest div
- [Vuejs]-How do you test a Vue.js modal component with Jest?
Source:stackexchange.com