svelte/test/runtime/samples/await-in-each/main.html

7 lines
141 B

{#each items as item}
{#await item.data}
<p>{item.title}: loading...</p>
{:then result}
<p>{item.title}: {result}</p>
{/await}
{/each}