mirror of https://github.com/sveltejs/svelte
13 lines
245 B
13 lines
245 B
6 years ago
|
<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}>
|