mirror of https://github.com/sveltejs/svelte
12 lines
139 B
12 lines
139 B
8 years ago
|
<button on:click='foo()'></button>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
methods: {
|
||
|
foo: () => {
|
||
|
this.set({ a: 1 });
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|