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.
17 lines
326 B
17 lines
326 B
6 years ago
|
<script>
|
||
6 years ago
|
import Level2 from './Level2.svelte';
|
||
|
import Level3 from './Level3.svelte';
|
||
6 years ago
|
|
||
|
export let values;
|
||
|
</script>
|
||
|
|
||
7 years ago
|
<div class="level1">
|
||
7 years ago
|
{#each values as value}
|
||
|
<h4>level 1 #{value}</h4>
|
||
|
<Level2 condition="{value % 2}">
|
||
7 years ago
|
<Level3>
|
||
|
<span>And more stuff goes in here</span>
|
||
|
</Level3>
|
||
|
</Level2>
|
||
7 years ago
|
{/each}
|
||
6 years ago
|
</div>
|