import { Observable } from 'rxjs';
import { create } from '../actions/vorgang';
import { tap, map } from 'rxjs/operators';
+import { State } from '../reducers/vorgang';
@Component({
selector: 'app-vorgang',
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));