Video details

Svelte 101: Adding data to your Svelte component

Svelte
03.25.2021
English

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
---
đź’»
REPL https://svelte.dev/repl/df5dd60d0cbc404392d68a2f35b9d043?version=3.35.0
đź“š
Related Resources Svelte https://svelte.dev Svelte REPL https://svelte.dev/repl Svelte Tutorial https://svelte.dev/tutorial/adding-data
🥰 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 #svelte101
Thanks for watching 🥰 -- with love, Li Hau