Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. @Effect()
  2. loadService$ = this.actions$.ofType(servicesActions.LOAD_ONE_SERVICE)
  3. .pipe(
  4. switchMap(() => this.store.select(fromSelect.getSelectedService)),
  5. switchMap(({merchantId, ova}) => this.appservice.getServiceById(merchantId, ova)),
  6. map(service => new servicesActions.LoadServiceSuccess(service)),
  7. catchError(error => of(new servicesActions.LoadServiceFail(error)))
  8. );
Add Comment
Please, Sign In to add comment