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.
33 lines
306 B
33 lines
306 B
5 years ago
|
<script>
|
||
|
import { writable } from 'svelte/store';
|
||
|
const foo = writable(true);
|
||
|
</script>
|
||
|
|
||
|
{#if $foo}
|
||
|
blah
|
||
|
{:else}
|
||
|
{#if bar()}
|
||
|
<Bar/>
|
||
|
{/if}
|
||
|
{/if}
|
||
|
|
||
|
{#if $foo}
|
||
|
blah
|
||
|
{:else}
|
||
|
{#if bar}
|
||
|
<Baz/>
|
||
|
{/if}
|
||
|
{/if}
|
||
|
|
||
|
{#if $foo}
|
||
|
blah
|
||
|
{:else if bar()}
|
||
|
<Bar/>
|
||
|
{/if}
|
||
|
|
||
|
{#if $foo}
|
||
|
blah
|
||
|
{:else if bar}
|
||
|
<Bar/>
|
||
|
{/if}
|