Trying to retrieve an Array<StaffInterface>
from an
Observable<Array<StaffInterface>>
in ngrx store.select. The store.select method returns the Observable<Array<StaffInterface>>
, which I then need to convert into an Array<StaffInterface>
so that I can pass it to primeng datatable.
staffList: Array<StaffInterface>;
this.staffList = store.select(staffList);
In the code snippet above, the store.select method is returning an
Observable<Array<StaffInterface>>
. My goal is to transform this into an Array<StaffInterface>
.