Guest User

Untitled

a guest
Feb 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import { mergeMap, tap, map } from 'rxjs/operators';
  2. import { Observable } from 'rxjs';
  3.  
  4. this.budgetService.getBudgetDays(this.startDate, this.finishDate)
  5. .subscribe({
  6. next(budgetDates) {
  7.  
  8. },
  9. error(error) {
  10. // not sure but I don't think rxjs should have nested callbacks like this.
  11. self.budgetTestService.getBudgetDates(self.startDate, self.finishDate)
  12.  
  13. .subscribe({
  14. next(budgetDates) {
  15. },
  16. error(error) {}
  17. });
  18. }
  19. });
Add Comment
Please, Sign In to add comment