Two-way-binding Shortcut
Original Code Example
<script>
let input = 'Shento';
</script>
<h1>Hello my name is {input}</h1>
<input type="text" bind:value={input} /><button>Change name</button>Explanation
Script Section
<script>
let input = 'Shento';
</script>HTML Section
Additional Information
Warning
Last updated