mirror of https://github.com/sveltejs/svelte
11 lines
162 B
11 lines
162 B
5 years ago
|
<script>
|
||
|
let name = 'change me';
|
||
|
|
||
|
function onInput(event) {
|
||
|
name = event.target.value
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<input value={name} on:input={onInput}>
|
||
|
|
||
|
<h1>{name}!</h1>
|