Add missing parent <div> element to code example.

In the previous commit, the missing `{#each}` tags were restored, which is helpful -- but it left out the `<div>` that wraps the `<input>`s. If a reader were copying from the example into the workspace, they would notice the styles breaking as a result. This change is intended to clarify that the parent `<div>` element should remain intact.
pull/7309/head
Nick Cummings 5 years ago committed by GitHub
parent b6441eb655
commit 424472c6bb
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
{#each todos as todo}
<div class:done={todo.done}>
<input
type=checkbox
bind:checked={todo.done}
@ -15,6 +16,7 @@ You can even bind to properties inside an `each` block.
placeholder="What needs to be done?"
bind:value={todo.text}
>
</div>
{/each}
```

Loading…
Cancel
Save