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/js/samples/component-static-var/input.svelte

13 lines
245 B

<script>
import Foo from './Foo.svelte';
import Bar from './Bar.svelte';
let y = 1;
let z = 2;
</script>
<Foo x={y}/>
<Bar x={z}/>
<!-- ensure z is considered dynamic, even though the binding is encountered late -->
<input bind:value={z}>