0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00
svelte/test/js/samples/instrumentation-template-x-equals-x/input.svelte
2019-02-08 08:48:10 -05:00

7 lines
155 B
Svelte

<script>
let things = [];
</script>
<button on:click="{() => { things.push(1); things = things }}">foo</button>
<p>number of things: {things.length}</p>