[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,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