A
A
Alexey Bugaev2020-05-14 19:48:31
Vue.js
Alexey Bugaev, 2020-05-14 19:48:31

What is the name key in the Vue component for?

Hello to all experts! I'm learning Vue and often see the field name: "ComponentName" in single-file components. For example, the component file is called AppList and the name key is the same. What does
this name give us, because without it everything works fine.

export default {
    name: "AppList",
  }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stepan Krapivin, 2020-05-14
@aleksei13b

Read carefully the documentation for Vue

B
bubaley, 2020-05-14
@bubaley

For me, the most important thing is a quick search and development in Vue devtools.
If errors appear or you need to look at the date components, then the search and determination takes place by the name of the component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question