Advertisement
Guest User

Untitled

a guest
May 16th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     ngOnInit(): void {
  2.         this.isLoading = true;
  3.         this.route.params
  4.             .switchMap((params) => this.peopleService.get(params.id))
  5.             .subscribe((next) => {
  6.                 this.id = next.id;
  7.                 this.person = next;            
  8.                 this.isLoading = false;  
  9.             });
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement