Getting Started with Vue.js: #21 Registering Components

So far, we have been registering components globally. This could become problematic because adding things globally could result in some naming collisions.

Instead of registering our components globally, we can register them per Vue instance so that only that Vue instance will know to use that component.

This is helpful because it also is a sign to us as the developer that this Vue application will use these components. We’re big supporters of readability and explicitly saying what dependencies live where.

Presented by Chris on Code:
Follow us on Twitter:
Like us on Facebook:
Follow us on Instagram:
We’re hiring:

Duration: 00:04:05
Publisher: DigitalOcean
You can watch this video also at the source.

Inxy Hosting CDN Marketplace