Akryum/meteor-vue2-example

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?

Add a name option to the component definition.

mitar commented

I thought that the name is automatically added for single file components?

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?

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?

We could. 😄