Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Master Vue.js with Vue School Premium

$25 / month

Vue.js Components Fundamentals

Master Vue.js with Vue School Premium

$25 / month

Component Slots

In this lesson, we'll learn how to pass HTML to our Vue.js components using slots. Slots are an awesome feature of Vue.js, and this lesson will teach you what you need to know to get started.

Solution to the slots exercise

Remember

If you need to pass HTML to your components, use slots. If you need to pass data, use props.