Loading...
Loading...
Error
Oops! Something went wrong
2. Reusable Components with Props
Speed
Speed
Quality
Quality
Captions
Captions
media loading
Play
Pause
10
Seek backward
Rewind 10s
Play
Pause
Play
Play
Pause
Pause
20
Seek forward
Forward 20s
Mute
Unmute
Volume High
Volume Low
Volume Low
Mute
Mute
Unmute
0:00
0:00
Start casting
Stop casting
Chapters
Chapters
Introduction to Component Reusability
00:00
Setting Up Initial Markup and Styles
00:23
Identifying Repetitive Markup
01:02
The Benefit of Components for Cleaner Code
01:28
Component Naming Best Practices
01:43
Creating the CoffeePlan Component
02:15
Making Components Dynamic with Props
03:00
Using `defineProps` Macro
03:43
Accessing Props in Script Setup
04:44
Refactoring `app.view` with `CoffeePlan` Component
05:26
Dynamic Rendering with `v-for` and Array of Plans
06:01
Advanced Prop Definition: Types, Defaults, and Required
07:11
Prop Validation and Warnings
08:08
Lesson Review and Conclusion
09:29
Enable captions
Disable captions
Enable Captions
Enable captions
Disable Captions
Disable captions
Settings
Settings
Settings
Enter fullscreen mode
Exit fullscreen mode
Fullscreen
Enter fullscreen
Exit Fullscreen
Exit fullscreen