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/store-each-binding-deep/main.svelte

11 lines
255 B

<script>
import { writable } from 'svelte/store';
let itemStore = writable({prop: {things: [{name: "item store"}]}});
</script>
{#each $itemStore.prop.things as thing }
<input bind:value={thing.name} >
{/each}
<p>{$itemStore.prop.things[0].name}</p>