File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11
11
"rollup-plugin-node-resolve" : " ^5.2.0" ,
12
12
"rollup-plugin-svelte" : " ^5.0.3" ,
13
13
"rollup-plugin-terser" : " ^4.0.4" ,
14
- "rollup-plugin-typescript2" : " ^0.24.2 " ,
14
+ "rollup-plugin-typescript2" : " 0.21.0 " ,
15
15
"svelte" : " ^3.12.1" ,
16
16
"typescript" : " ^3.4.5"
17
17
},
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { onMount , onDestroy } from " svelte" ;
3
3
import { writable } from " svelte/store" ;
4
+ import { myStore } from " ./store" ;
4
5
5
6
import Counter from " ./Counter.svelte" ;
6
7
28
29
<Counter />
29
30
<Counter value ={1 }>Counter 1</Counter >
30
31
<Counter bind:value ={$count } step ={3 }>Counter 2</Counter >
32
+ <Counter bind:value ={$myStore } step ={5 }>Counter 3</Counter >
31
33
</p >
Original file line number Diff line number Diff line change
1
+ import { writable } from "svelte/store" ;
2
+ export const myStore = writable ( 10 ) ;
You can’t perform that action at this time.
0 commit comments