mirror of https://github.com/sveltejs/svelte
parent
b246192a91
commit
9a28199d79
@ -1,11 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { count } from './stores.js';
|
import { counter } from './stores.js';
|
||||||
import Incrementer from './Incrementer.svelte';
|
import Incrementer from './Incrementer.svelte';
|
||||||
import Decrementer from './Decrementer.svelte';
|
import Decrementer from './Decrementer.svelte';
|
||||||
import Resetter from './Resetter.svelte';
|
import Resetter from './Resetter.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>The count is {$count}</h1>
|
<h1>The counter is {$counter}</h1>
|
||||||
|
|
||||||
<Incrementer/>
|
<Incrementer/>
|
||||||
<Decrementer/>
|
<Decrementer/>
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
|
|
||||||
export const count = writable(0);
|
export const counter = writable(0);
|
||||||
@ -1,3 +1,3 @@
|
|||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
|
|
||||||
export const count = writable(0);
|
export const counter = writable(0);
|
||||||
@ -1,11 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { count } from './stores.js';
|
import { counter } from './stores.js';
|
||||||
import Incrementer from './Incrementer.svelte';
|
import Incrementer from './Incrementer.svelte';
|
||||||
import Decrementer from './Decrementer.svelte';
|
import Decrementer from './Decrementer.svelte';
|
||||||
import Resetter from './Resetter.svelte';
|
import Resetter from './Resetter.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>The count is {$count}</h1>
|
<h1>The counter is {$counter}</h1>
|
||||||
|
|
||||||
<Incrementer/>
|
<Incrementer/>
|
||||||
<Decrementer/>
|
<Decrementer/>
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
|
|
||||||
export const count = writable(0);
|
export const counter = writable(0);
|
||||||
Loading…
Reference in new issue