Vue.js Components Registration
Published at March 2, 2019 · 2 min read
I can’t add anything from the technical point of view to the official documentation but I would like to drop a few lines about local vs global components registration.
Global registration
I prefer to use it mostly for the 3rd-party libraries which are used a lot. E.g. vue-fontawesome, bootstrap-vue, etc. It’s reasonable to use global registration for own components if they are used on the most pages.
Local registration
I think it’s reasonable to use it as a default solution for component registration. It allows you to do it on demand, so you always will know what does some custom tag do.
...