Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Effect()
- public removeFromCart = this.actions.pipe(
- ofType(CartActionTypes.RemoveFromCart),
- switchMap(action => this.backend
- .removeFromCart(action.payload)
- .pipe(
- map(response => new RemoveFromCartFulfilled(response)),
- catchError(error => of(new RemoveFromCartRejected(error)))
- )
- )
- );
Add Comment
Please, Sign In to add comment