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-f/main.svelte

14 lines
212 B

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