I am using @ngrx/store
and I am grabbing a slice of the state from the store.
I have a component that wants to display that slice. However, with the {{ obs$ | async}}
present in the template, the entire template is not rendered. If I remove the {{ obs$ | async }}
then SLICE:
is rendered.
Any idea on why this is the case or how to diagnose the issue? The JS console isn't showing me any errors.
@Component({
selector: 'slice',
template: `SLICE: {{ obs$ | async }}
})
export class Slice {
obs$: Observable<any>
constructor(private store:Store<any>) {
this.obs$ = this.store.select(s => s.slice);
}
}