Getting Started with Vue.js: #21 Registering Components

Bit Ninja


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: https://twitter.com/chrisoncode

https://www.digitalocean.com/
Follow us on Twitter: https://twitter.com/digitalocean
Like us on Facebook: https://www.facebook.com/DigitalOcean
Follow us on Instagram: https://www.instagram.com/thedigitalocean
We’re hiring: http://grnh.se/aicoph1


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