Slots Slots Slots Everybody | VueConf US 2024
HTML-код
- Опубликовано: 8 сен 2024
- Abbey Perini presents a talk at VueConf US 2024. Watch all the talks from this conference and more on Vue Mastery 👉 www.vuemastery...
Ready to master Vue.js? With weekly Vue js tutorials on the latest topics, and exclusive content with Evan You (the creator of Vue), Vue Mastery is the ultimate learning resource for Vue developers to level-up their skills. Watch more free Vuejs tutorials 👉 www.vuemastery...
0:40 React
1:44 Vue and Angular
4:19 Named Slots
5:55 Scoped Slots
Ready to master Vue.js? Level up here 👉 www.vuemastery.com
Awesome, but can a slot also emit a listener from the child to the parent? I'm still struggling with this. I have a case where when there's an emit in the child or slots, I want it to be triggered in the parent as well.
Beautifully explained, particularly like renderless components
Thanks Abbey, well explained !
She has so much energy! :))
Awesome, but can a slot also emit a listener from the child to the parent? I'm still struggling with this. I have a case where when there's an emit in the child or slots, I want it to be triggered in the parent as well.
For this you can use regular emit from child to parent and handle it in the parent, right?
You can expose that function from child using defineExpose and access it through parent and with this approuch you don't event need to emit a function
May be simple way for this task - Provide/Inject ?
No disrespect, but it can be explained more deeper and better, like how slots works and more
This is a reallly well-done concise intro to slots. There are plenty of 3hr tutorials online if thats what youre into