mirror of https://github.com/sveltejs/svelte
6 lines
102 B
6 lines
102 B
8 years ago
|
<button on:click='set({ visible: !visible })'>toggle</button>
|
||
|
|
||
|
{{#if visible}}
|
||
|
<p>hello!</p>
|
||
|
{{/if}}
|