background icons
background icons 2

Video Belajar

Tonton dan pelajari berbagai topik menarik melalui video pembelajaran eksklusif dari Channel lihautan.

lihautan

1747

Svelte Tutorial for Beginners - Slot Forwarding

This is the ultimate checkpoint to test how well do you know about slots and slot attributes.
How do you pass a an element from 1 component to another component through one component? And how do you pass data across?

Slot forwarding is not a feature. It's a means to an end, and use all you know about slots and elements with slot attributes.

Introduction 00:00
Setting up 00:49
Forwarding slot content 05:13
Simplify into slot element with slot attribute 06:48
Passing data through forwarded slot content 08:54
Every component in between can pass data into the slot 13:56
Summary 16:06

---

💻 REPL https://svelte.dev/repl/86989ec9fe4b47be8203f811e8dc3b34?version=3.37.0

🎧 Svelte Tutorial for Beginners https://www.youtube.com/playlist?list=PLoKaNN3BjQX3mxDEVG3oGJx2ByXnue_gR

📚 Related Resources
Svelte https://svelte.dev
Svelte REPL https://svelte.dev/repl
Svelte Tutorial - Slot Props https://svelte.dev/tutorial/slot-props

🥰 Support me https://www.buymeacoffee.com/lihautan

🔗 Want to learn more from me? Check out these links:

Twitter: https://twitter.com/lihautan
Blog: https://lihautan.com/
Newsletter: https://lihautan.com/newsletter

#svelte #sveltetutorial #sveltebeginner

Thanks for watching 🥰 -- with love, Li Hau