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/runtime/samples/head-raw-dynamic/main.svelte

13 lines
205 B

6 years ago
<script>
import Foo from './Foo.svelte';
import Bar from './Bar.svelte';
export let condition, foo, bar;
</script>
{#if condition === 1}
<Foo {foo} />
{:else if condition === 2}
<Bar {bar} />
{/if}