Learn how to master slots and scoped slots, to build flexible and reusable vue.js components.
In this course, you'll learn how to use slots and scoped slots to create flexible and reusable Vue.js components.
Slots allow us to pass components and HTML to components, giving us greater control of the appearance than what we get with props.
Slots do not replace props. The two features have different purposes.
During the course, you'll learn:
This course uses Vue 2. While the slots API has changed slightly in Vue 3 many of the concepts taught in this course are the same.