Skip to content

Commit e230973

Browse files
authored
Add deletion of select block on section 02-svelte-component (#1)
1 parent 034037f commit e230973

File tree

1 file changed

+5
-0
lines changed
  • content/tutorial/02-advanced-svelte/09-special-elements/02-svelte-component

1 file changed

+5
-0
lines changed

content/tutorial/02-advanced-svelte/09-special-elements/02-svelte-component/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ We _could_ do this with a sequence of `if` blocks...
2727
{/each}
2828
</select>
2929
30+
---{#if selected.color === 'red'}---
31+
---<RedThing />---
32+
---{:else}---
33+
---<p>TODO others</p>---
34+
---{/if}---
3035
+++<svelte:component this={selected.component} />+++
3136
```
3237

0 commit comments

Comments
 (0)