We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6441eb commit f24614cCopy full SHA for f24614c
site/content/tutorial/06-bindings/09-each-block-bindings/text.md
@@ -6,15 +6,17 @@ You can even bind to properties inside an `each` block.
6
7
```html
8
{#each todos as todo}
9
- <input
10
- type=checkbox
11
- bind:checked={todo.done}
12
- >
+ <div class:done={todo.done}>
+ <input
+ type=checkbox
+ bind:checked={todo.done}
13
+ >
14
15
- placeholder="What needs to be done?"
16
- bind:value={todo.text}
17
+ placeholder="What needs to be done?"
+ bind:value={todo.text}
18
19
+ </div>
20
{/each}
21
```
22
0 commit comments