Guest User

Untitled

a guest
Mar 19th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. @Effect()
  2. public removeFromCart = this.actions.pipe(
  3. ofType(CartActionTypes.RemoveFromCart),
  4. switchMap(action => this.backend
  5. .removeFromCart(action.payload)
  6. .pipe(
  7. map(response => new RemoveFromCartFulfilled(response)),
  8. catchError(error => of(new RemoveFromCartRejected(error)))
  9. )
  10. )
  11. );
Add Comment
Please, Sign In to add comment