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