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/bindings-coalesced/Foo.svelte

12 lines
177 B

<script>
export let bar = 1;
export let baz = 2;
export function double() {
bar = bar * 2;
baz = baz * 2;
}
</script>
<p>bar in Foo: {bar}</p>
<p>baz in Foo: {baz}</p>