Register components using pascal casing
idelsink opened this issue ยท 3 comments
Register components using pascal casing so that both PascalCase
and kebab-case
can be used for the components.
When defining a component with PascalCase, you can use either case when referencing its custom element. That means both and are acceptable.
Taken from: https://vuejs.org/v2/guide/components-registration.html#With-PascalCase
Example
Source: https://github.com/gluons/vue-github-buttons/blob/master/src/index.ts#L35
vue.component('GhBtnsStar', Star);
vue.component('GhBtnsFork', Fork);
vue.component('GhBtnsWatch', Watch);
vue.component('GhBtnsFollow', Follow);
Issue-Label Bot is automatically applying the label feature_request
to this issue, with a confidence of 0.86. Please mark this comment with ๐ or ๐ to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
OK. Thank you for letting me know about it and your PR.
Good point.