Video details

Svelte 101: bind:this

Svelte
04.08.2021
English

Sometimes it is useful to get the reference of the element created by Svelte.
In this video, we are going to take a look how you can do that with `bind:this`.
And of course, bind:this works with components as well! With the reference of the component instance, you can call methods exported by the component!
---
đź’»
REPL https://svelte.dev/repl/c8c0fc9e1f054e349fe7481d26d280ae?version=3.37.0
đź“š
Related Resources Svelte https://svelte.dev Svelte REPL https://svelte.dev/repl Svelte Tutorial: This https://svelte.dev/tutorial/bind-this
🥰 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