mirror of https://github.com/sveltejs/svelte
10 lines
158 B
10 lines
158 B
6 years ago
|
<script>
|
||
|
import { count } from './stores.js';
|
||
|
|
||
|
function decrement() {
|
||
2 years ago
|
count.update((n) => n - 1);
|
||
6 years ago
|
}
|
||
|
</script>
|
||
|
|
||
2 years ago
|
<button on:click={decrement}> - </button>
|