File tree Expand file tree Collapse file tree 3 files changed +16
-15
lines changed
packages/store/examples/counter Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { select } from 'ng2-redux';
4
4
import 'rxjs/add/operator/combineLatest' ;
5
5
6
6
@Component ( {
7
- selector : 'counter-info' ,
8
- template : `
7
+ selector : 'counter-info' ,
8
+ template : `
9
9
<ul>
10
10
<li>{{ funcCounter$ | async }}</li>
11
11
<li>{{ stringKey$ | async }}</li>
@@ -22,10 +22,11 @@ export class CounterInfo {
22
22
foo : any ;
23
23
24
24
ngOnInit ( ) {
25
- this . counterX2$ . combineLatest ( this . stringKey$ , ( x , y ) => {
26
- return { x : x * 2 , y : y * 3 } ;
27
- } ) . subscribe ( n => {
28
- this . foo = n ;
29
- } )
25
+ this . counterX2$ . combineLatest ( this . stringKey$ ,
26
+ ( x : number , y : number ) => {
27
+ return { x : x * 2 , y : y * 3 } ;
28
+ } ) . subscribe ( n => {
29
+ this . foo = n ;
30
+ } ) ;
30
31
}
31
32
}
Original file line number Diff line number Diff line change 24
24
},
25
25
"homepage" : " https://github.com/wbuchwalter/ng2-redux#readme" ,
26
26
"dependencies" : {
27
- "@angular/common" : " ^ 2.0.0-rc.1 " ,
28
- "@angular/compiler" : " ^ 2.0.0-rc.1 " ,
29
- "@angular/core" : " 2.0.0-rc.1 " ,
30
- "@angular/http" : " ^ 2.0.0-rc.1 " ,
31
- "@angular/platform-browser" : " ^ 2.0.0-rc.1 " ,
32
- "@angular/platform-browser-dynamic" : " ^ 2.0.0-rc.1 " ,
27
+ "@angular/common" : " 2.0.0-rc.2 " ,
28
+ "@angular/compiler" : " 2.0.0-rc.2 " ,
29
+ "@angular/core" : " 2.0.0-rc.2 " ,
30
+ "@angular/http" : " 2.0.0-rc.2 " ,
31
+ "@angular/platform-browser" : " 2.0.0-rc.2 " ,
32
+ "@angular/platform-browser-dynamic" : " 2.0.0-rc.2 " ,
33
33
"core-js" : " ^2.3.0" ,
34
- "ng2-redux" : " ^2.3.1 " ,
34
+ "ng2-redux" : " ^3.0.0 " ,
35
35
"redux" : " ^3.4.0" ,
36
36
"redux-logger" : " ^2.6.1" ,
37
37
"redux-localstorage" : " ^0.4.0" ,
Original file line number Diff line number Diff line change 1
1
import * as Redux from 'redux' ;
2
2
const { combineReducers } = Redux ;
3
- import { RootState } from '../store/configureStore ' ;
3
+ import { RootState } from '../store' ;
4
4
import counter from './counter' ;
5
5
6
6
const rootReducer = combineReducers < RootState > ( {
You can’t perform that action at this time.
0 commit comments