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/js/samples/each-block-changed-check/input.svelte

20 lines
322 B

<script>
export let comments;
export let elapsed;
export let time;
export let foo;
</script>
{#each comments as comment, i}
<div class='comment'>
<strong>{i}</strong>
<span class='meta'>
{comment.author} wrote {elapsed(comment.time, time)} ago:
</span>
{@html comment.html}
</div>
{/each}
<p>{foo}</p>