mirror of https://github.com/sveltejs/svelte
5 lines
101 B
5 lines
101 B
8 years ago
|
<button on:click='set({ clicked: true })'>click me</button>
|
||
|
|
||
|
{{#if clicked}}
|
||
|
<p>clicked!</p>
|
||
|
{{/if}}
|