Guest User

Untitled

a guest
Oct 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. this.authService.tokenObs.pipe( map(res => res),mergeMap( token =>
  2. this.service.getUsers(token).subscribe(res2=>{
  3. console.log('res2', res2)
  4. })
  5. ));
  6.  
  7. this.authService.tokenObs.pipe(
  8. map(res => res),
  9. mergeMap(this.service.getUsers(token))
  10. ).subscribe(res2=>{
  11. console.log('res2', res2)
  12. });
Add Comment
Please, Sign In to add comment