mirror of https://github.com/sveltejs/svelte
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.
18 lines
231 B
18 lines
231 B
6 years ago
|
<script>
|
||
6 years ago
|
import Foo from './Foo.svelte';
|
||
|
import Bar from './Bar.svelte';
|
||
|
import Baz from './Baz.svelte';
|
||
6 years ago
|
|
||
|
export let y;
|
||
|
export let x;
|
||
|
</script>
|
||
|
|
||
7 years ago
|
<p>y: {y}</p>
|
||
8 years ago
|
|
||
|
<Baz bind:x/>
|
||
|
|
||
7 years ago
|
{#if x}
|
||
8 years ago
|
<Foo bind:y/>
|
||
7 years ago
|
{:else}
|
||
8 years ago
|
<Bar bind:y/>
|
||
6 years ago
|
{/if}
|