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/vars/samples/props/input.svelte

19 lines
256 B

<script>
export let name = 'world';
export let cats;
let foo = 1;
let bar;
$: bar = foo * 2;
</script>
<h1>Hello {name}!</h1>
<ul>
{#each cats as cat}
<li><a target="_blank" href={cat.video}>{cat.name}</a></li>
{/each}
</ul>
<p>bar: {bar}</p>