Akryum / meteor-vue2-example

Meteor & Vue 2.0 example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anonymous Component in Vue dev tools

mitar opened this issue · comments

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.

commented

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

No it isn't. ^^

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?

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. 😄