Reusable Vue.js Components with Slots
Год выпуска: 2021
Производитель: Vueschool
Сайт производителя:
https://vueschool.io/courses/reusable-vuejs-components-with-slots
Автор: Aleksej Dix, Rolf Haug, Alex Kyriakidis
Продолжительность: 44:33
Тип раздаваемого материала: Видеоурок
Язык: Английский
Описание: PLEASE NOTE: You are browsing a Vue.js 2 course
What you will learn in the Reusable Vue.js Components with Slots course
- What are slots and scoped Slots
- What are the benefits of using slots
- How to compose components with slots
About the Reusable Vue.js Components with Slots course
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:
When and how to use slots
What scoped slots are
How to work with dynamic named components
How to compose components with reusable component patterns
Important!
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.
View what's changed in the Vue 3 Docs Migartion Guide here and here.
Содержание
Slots (3 lessons • 11 min)
Scoped Slots (7 lessons • 33 min)
Файлы примеров: отсутствуют
Формат видео: AVI
Видео: AVC, 1920x1080, 16:9, 30fps, 250 - 4200 kbps
Аудио: AAC, 2 ch, 50-300 Kbps