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/dynamic-element-class-direc.../main.svelte

17 lines
283 B

<script>
import Link from "./Link.svelte";
let foo = [
{ text: "foo0" },
{ text: "foo1" },
{ text: "foo2" },
{ text: "foo3" },
];
</script>
<Link item={{ text: "foo" }} />
<Link item={foo[0]} />
<Link bind:item={foo[0]} />
{#each foo as item}
<Link bind:item />
{/each}