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/each-block-after-let/main.svelte

17 lines
253 B

<script>
import Child from './Child.svelte';
const value = ['a'];
</script>
<div>
{value[0]}
{#each value as n}{n}{/each}
</div>
<div>
<Child value={['b']} let:value>{value[0]}</Child>
</div>
<div>
{value[0]}
{#each value as n}{n}{/each}
</div>