mirror of https://github.com/sveltejs/svelte
parent
9bba8d18d1
commit
7576d7dc93
@ -1,3 +1,3 @@
|
||||
{#each todos as todo key todo.id}
|
||||
{#each todos as todo (todo.id)}
|
||||
<p>{todo}</p>
|
||||
{/each}
|
||||
|
@ -0,0 +1,3 @@
|
||||
{#each todos as todo, i (todo.id)}
|
||||
<p>{i+1}: {todo.description}</p>
|
||||
{/each}
|
Loading…
Reference in new issue