mirror of https://github.com/sveltejs/svelte
parent
9a28199d79
commit
bb147ea594
@ -1,9 +1,9 @@
|
||||
<script>
|
||||
import { count } from './stores.js';
|
||||
import { counter } from './stores.js';
|
||||
</script>
|
||||
|
||||
<h1>The count is {$count}</h1>
|
||||
<h1>The counter is {$counter}</h1>
|
||||
|
||||
<button on:click={count.increment}>+</button>
|
||||
<button on:click={count.decrement}>-</button>
|
||||
<button on:click={count.reset}>reset</button>
|
||||
<button on:click={counter.increment}>+</button>
|
||||
<button on:click={counter.decrement}>-</button>
|
||||
<button on:click={counter.reset}>reset</button>
|
||||
@ -1,9 +1,9 @@
|
||||
<script>
|
||||
import { count } from './stores.js';
|
||||
import { counter } from './stores.js';
|
||||
</script>
|
||||
|
||||
<h1>The count is {$count}</h1>
|
||||
<h1>The counter is {$counter}</h1>
|
||||
|
||||
<button on:click={count.increment}>+</button>
|
||||
<button on:click={count.decrement}>-</button>
|
||||
<button on:click={count.reset}>reset</button>
|
||||
<button on:click={counter.increment}>+</button>
|
||||
<button on:click={counter.decrement}>-</button>
|
||||
<button on:click={counter.reset}>reset</button>
|
||||
@ -1,9 +1,9 @@
|
||||
<script>
|
||||
import { count } from './stores.js';
|
||||
import { counter } from './stores.js';
|
||||
</script>
|
||||
|
||||
<h1>The count is {$count}</h1>
|
||||
<h1>The counter is {$counter}</h1>
|
||||
|
||||
<button on:click={count.increment}>+</button>
|
||||
<button on:click={count.decrement}>-</button>
|
||||
<button on:click={count.reset}>reset</button>
|
||||
<button on:click={counter.increment}>+</button>
|
||||
<button on:click={counter.decrement}>-</button>
|
||||
<button on:click={counter.reset}>reset</button>
|
||||
Loading…
Reference in new issue