What is global registration in components?

Posted by Jennifer | Updated on

What is global registration in components?

The components which are globally registered can be used in the template of any root Vue instance (new Vue) created after registration.

In the global registration, the components created using Vue.component as below:

Let’s take multiple components which are globally registered in the vue instance,

The above components can be used in the vue instance,

Remember that the components can be used in subcomponents as well.


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.

Related Questions & Answers