11 lines
156 B

<button on:click>click me</button>
<script>
export default {
oncreate () {
this.on('click', () => {
this.clicked = true;
});
}
};
</script>