Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Effect()
- loadService$ = this.actions$.ofType(servicesActions.LOAD_ONE_SERVICE)
- .pipe(
- switchMap(() => this.store.select(fromSelect.getSelectedService)),
- switchMap(({merchantId, ova}) => this.appservice.getServiceById(merchantId, ova)),
- map(service => new servicesActions.LoadServiceSuccess(service)),
- catchError(error => of(new servicesActions.LoadServiceFail(error)))
- );
Add Comment
Please, Sign In to add comment