You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/globals-not-overwritten-by-.../main.svelte

10 lines
254 B

<script>
export let todos;
</script>
{#each Object.keys(todos) as key}
<div class='todo {todos[key].done ? "done": ""}'>
<input type='checkbox' bind:checked={todos[key].done}>
<input type='text' bind:value={todos[key].description}>
</div>
{/each}