Answer the question
In order to leave comments, you need to log in
What is the correct name for the components?
1) The styleguide vue says that components should be described in 2-3 words to avoid collisions with html tags, and I had a problem with Footer.vue. Is it possible to name the component(File) itself AppFooter.vue? or in such cases it is better to name the component Footer.vue(Without App) and when importing in another component, add the app prefix:
2) What is the best name for the components? Vue itself, when deploying a project, names all components with a capital letter. But I saw that some people write with a small letter and with the v- prefix, but I did not find it in the documentation. Is it normal to write components with a small letter and with the v- prefix, and where can I read about it?
3) How to deal with components for which it is difficult to come up with a two-word name? Can they be prefixed with app? For example like this:
import appFooter from "@/components/Footer";
Answer the question
In order to leave comments, you need to log in
Is it possible to name the component(File) itself AppFooter.vue?
or in such cases it is better to call the component Footer.vue (Without App) and when importing in another component, add the app prefix
Vue itself, when deploying a project, names all components with a capital letter. But I saw in the video that some people write with a small letter
Is it normal to write components with a small letter and with the v- prefix, and where can I read about it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question