mirror of https://github.com/sveltejs/svelte
11 lines
156 B
11 lines
156 B
8 years ago
|
<button on:click>click me</button>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
oncreate () {
|
||
|
this.on('click', () => {
|
||
|
this.clicked = true;
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
</script>
|