mirror of https://github.com/sveltejs/svelte
fix compound ifs with outros and no dependencies (#3595)
parent
914d155d9f
commit
3e02b95488
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
html: `blah blah blah blah`
|
||||||
|
};
|
@ -0,0 +1,32 @@
|
|||||||
|
<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}
|
Loading…
Reference in new issue