Video details

Svelte 101: Adding data to your Svelte component


Let's add some data and use the data in the template!
Variables defined at the top-level of your script tag will be available within your template.
You can use the curly brackets {} to insert JavaScript content anywhere in your template, be it in the content or the attribute value.
Introduction 00:00 Adding data to your template 00:09 The attribute shorthand 03:40
Related Resources Svelte Svelte REPL Svelte Tutorial
🥰 Support me
Want to learn more from me? Check out these links:
Twitter: Blog: Newsletter:
#svelte #svelte101
Thanks for watching 🥰 -- with love, Li Hau