[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/7738/head
Nick Cummings 5 years ago committed by GitHub
parent 492597e5bb
commit 280150df41

@ -6,15 +6,17 @@ You can even bind to properties inside an `each` block.
```html ```html
{#each todos as todo} {#each todos as todo}
<input <div class:done={todo.done}>
type=checkbox <input
bind:checked={todo.done} type=checkbox
> bind:checked={todo.done}
>
<input <input
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