An introduction to working with components in Vue. We'll look at how to create components, how to pass data between components (via both props and an event bus) and how to use Vue’s <slot>
element to render additional content within a component.
One of the great things about working with Vue is its component-based approach to building user interfaces. This allows you to break your application into smaller, reusable pieces (components) which you can then use to build out a more complicated structure.
In this book, I’ll offer you a high-level introduction to working with components in Vue. I’ll look at how to create components, how to pass data between components (via both props and an event bus) and how to use Vue’s <slot>
element to render additional content within a component.
4
Unlimited access to this title and 600+ others in our library
New titles added frequently
Cancel anytime