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/hydration/samples/each-else/main.svelte

16 lines
168 B

<script>
export let name = "world";
export let array = [];
</script>
<h1>Hello, {name}</h1>
{#each array as elem}
<p>
item
</p>
{:else}
<p>
weird
</p>
{/each}