Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. this.bedService
  2. .query()
  3. .pipe(
  4. filter((mayBeOk: HttpResponse<IBed[]>) => mayBeOk.ok),
  5. map((response: HttpResponse<IBed[]>) => response.body),
  6. )
  7. .subscribe((res: IBed[]) => (this.beds = res), (res: HttpErrorResponse) => this.onError(res.message));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement