mirror of https://github.com/sveltejs/svelte
parent
8f56cfe310
commit
ae4767a4dc
@ -0,0 +1,11 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
|
||||
props: {
|
||||
count: 0
|
||||
},
|
||||
|
||||
error: `'count' is not a store with a 'subscribe' method`
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let count;
|
||||
</script>
|
||||
|
||||
<button on:click="{() => count.update(n => n + 1)}">count {$count}</button>
|
Loading…
Reference in new issue