From: Kai Moritz Date: Mon, 29 Jun 2020 20:43:46 +0000 (+0200) Subject: WIP:So macht's mehr Sinn... X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=134b237500bdd10088605bffd9d38ca57f5d8177;p=examples%2Fangular-tour-of-heroes WIP:So macht's mehr Sinn... --- diff --git a/src/app/vorgang/vorgang.component.ts b/src/app/vorgang/vorgang.component.ts index 78f093c..a6e2362 100644 --- a/src/app/vorgang/vorgang.component.ts +++ b/src/app/vorgang/vorgang.component.ts @@ -5,6 +5,7 @@ import { Store, select } from '@ngrx/store'; import { Observable } from 'rxjs'; import { create } from '../actions/vorgang'; import { tap, map } from 'rxjs/operators'; +import { State } from '../reducers/vorgang'; @Component({ selector: 'app-vorgang', @@ -17,7 +18,7 @@ export class VorgangComponent implements OnInit { constructor( private service: VorgangService, - private store: Store<{ vorgang: Vorgang[] }>) { + private store: Store<{ vorgang: { vorgaenge: Vorgang[] }}>) { this.vorgang$ = store.pipe(select('vorgang')).pipe( tap((state) => console.log(`New state: ${JSON.stringify(state)}`)), map((state: State) => state.vorgaenge));