Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.bedService
- .query()
- .pipe(
- filter((mayBeOk: HttpResponse<IBed[]>) => mayBeOk.ok),
- map((response: HttpResponse<IBed[]>) => response.body),
- )
- .subscribe((res: IBed[]) => (this.beds = res), (res: HttpErrorResponse) => this.onError(res.message));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement