|
|
@ -36,7 +36,7 @@ Element bindings make it easy to respond to user interactions:
|
|
|
|
```html
|
|
|
|
```html
|
|
|
|
<!-- { title: 'Element bindings' } -->
|
|
|
|
<!-- { title: 'Element bindings' } -->
|
|
|
|
<h1>Hello {name}!</h1>
|
|
|
|
<h1>Hello {name}!</h1>
|
|
|
|
<input bind:value=name>
|
|
|
|
<input bind:value={name}>
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
```json
|
|
|
@ -158,4 +158,4 @@ export default function createRenderer(canvas, ctx) {
|
|
|
|
ctx.putImageData(imageData, 0, 0);
|
|
|
|
ctx.putImageData(imageData, 0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|