background icons
background icons 2

Video Belajar

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

lihautan

2974

Svelte Tutorial for Beginners - 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

---

💻 REPL https://svelte.dev/repl/df5dd60d0cbc404392d68a2f35b9d043?version=3.35.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 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 #sveltetutorial #sveltebeginner

Thanks for watching 🥰 -- with love, Li Hau