Skip to content

Commit

Permalink
docs: remove generic type from state selection
Browse files Browse the repository at this point in the history
The generic type is not necessary and causes error in compilation because it expects the state key instead of the state key type.
  • Loading branch information
jdjuan authored Aug 10, 2017
1 parent 0044c87 commit efb0d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class MyAppComponent {
counter: Observable<number>;

constructor(private store: Store<AppState>) {
this.counter = store.select<number>((state: AppState) => state.counter);
this.counter = store.select('counter');
}

increment(){
Expand Down

0 comments on commit efb0d89

Please sign in to comment.