Skip to content

Commit

Permalink
[docs] Add missing parent element to code example. (sveltejs#7309)
Browse files Browse the repository at this point in the history
The div is part of the code, but not part of the code snippet of the text
  • Loading branch information
whymog authored and himanshiLt committed Mar 3, 2022
1 parent 6807849 commit f04dfca
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions site/content/tutorial/06-bindings/09-each-block-bindings/text.md
Expand Up @@ -6,15 +6,17 @@ You can even bind to properties inside an `each` block.

```html
{#each todos as todo}
<input
type=checkbox
bind:checked={todo.done}
>
<div class:done={todo.done}>
<input
type=checkbox
bind:checked={todo.done}
>

<input
placeholder="What needs to be done?"
bind:value={todo.text}
>
<input
placeholder="What needs to be done?"
bind:value={todo.text}
>
</div>
{/each}
```

Expand Down

0 comments on commit f04dfca

Please sign in to comment.