Anonymous Component in Vue dev tools
mitar opened this issue · 8 comments
mitar commented
In Vue dev tools, the app component is named "Anonymous Component". Is there some way to correctly name it?
Akryum commented
Add a name
option to the component definition.
mitar commented
I thought that the name is automatically added for single file components?
Akryum commented
No it isn't. ^^
mitar commented
Any reason why this would not be done so? From what I see Vue tries vm.$options.name || vm.$options._componentTag
in warn
(not sure for dev tools). So _componentTag
could be set?
Akryum commented
Well because you can set a different name that will be used for aromatic
registration. I usually name my components, even in non Meteor apps.
Le lun. 2 janv. 2017 à 12:22, Mitar <notifications@github.com> a écrit :
… Any reason why this would not be done so? From what I see Vue tries vm.$
options.name || vm.$options._componentTag in warn (not sure for dev
tools). So _componentTag could be set?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACqyfJElRK8sS-GlzEC78vyL7Q-g5g4yks5rON3igaJpZM4LY4pJ>
.
mitar commented
So, why wouldn't we name components the same as they are registered under using automatic registration, if user does not name them themselves?
Akryum commented
We could. 😄
mitar commented
I opened: meteor-vue/vue-meteor#99