In this video we'll teach you how to communicate from a child component up to its parent, with component events in Svelte.
We cover the following topics:
0:00 - Intro
0:14 - Component Events
0:38 - Dispatch an Event
2:46 - Listen for an Event
3:50 - Send data with an Event
5:17 - Forward an event through the component tree
6:24 - Outro & Next up
This lesson is also available in written format
https://www.koderhq.com/tutorial/svelte/component-event/
Check out the Svelte playlist for more videos
https://www.youtube.com/playlist?list=PLFAU47Id44XHuWQt84YWbaBBL0CI1nFXk
Subscribe to the channel and never miss a lesson
https://www.youtube.com/channel/UCz6k9pRLevdJGAsMMAVSb_Q?sub_confirmation=1
Visit the website for a wide range of programming tutorials
https://www.koderhq.com