Use Event Handlers in Svelte 2

InstructorAndrew Smith

Share this video with your friends

Send Tweet

In this lesson you will learn how to attach Event Handlers to buttons and input fields. Event handlers normally follows the on:[event] format. If you are making use of two way binding you should use bind: instead, for example an input field could use bind:value.

Veekas Shrivastava
~ 6 years ago

Useful and concise, thanks! Are you considering making more svelte lessons?

Andrew Smithinstructor
~ 6 years ago

Thank you Veekas, Yes I have more svelte lessons coming up.