[docs] Add missing parent element to code example. (#7309)

The div is part of the code, but not part of the code snippet of the text
pull/7323/head
Nick Cummings 4 years ago committed by GitHub
parent b6441eb655
commit f24614cd52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,7 @@ You can even bind to properties inside an `each` block.
```html ```html
{#each todos as todo} {#each todos as todo}
<div class:done={todo.done}>
<input <input
type=checkbox type=checkbox
bind:checked={todo.done} bind:checked={todo.done}
@ -15,6 +16,7 @@ You can even bind to properties inside an `each` block.
placeholder="What needs to be done?" placeholder="What needs to be done?"
bind:value={todo.text} bind:value={todo.text}
> >
</div>
{/each} {/each}
``` ```

Loading…
Cancel
Save