Component names should always be multi-word, except for root level or built-in vue components(such as
or
etc). This recommendation is to prevents conflicts with existing and future HTML elements, since all HTML elements are a single word.
1 2 3 4 5 6 | Vue.component('user', { //bad approach // ... }) Vue.component('user-profile', { //good approach // ... }) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.