April 2017
Intermediate to advanced
454 pages
12h 51m
English
A component is extremely similar to a Vue instance. Here, I am quoting from the official documentation:
As a matter of fact, even the anatomy of declaring a Vue instance is quite similar to declaring a Vue component. Let's put them side by side and identify the similarities and differences:
Vue.component('light-bulb', { template: ` <div class='light-bulb'> <p> |
new Vue({ el: '#app' })
|
The first thing you should note is the option objects present in both. While it contains only the template option in the lightbulb ...
Read now
Unlock full access