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/component-binding-blowback-d/main.svelte

14 lines
224 B

<script>
import One from "./One.svelte";
const obj = {
a: [{}],
b: []
};
</script>
<One bind:list={obj.a} i={0}/>
<One bind:list={obj.b} i={1}/>
<p>{obj.a.map(JSON.stringify)}</p>
<p>{obj.b.map(JSON.stringify)}</p>