Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit(): void {
- this.isLoading = true;
- this.route.params
- .switchMap((params) => this.peopleService.get(params.id))
- .subscribe((next) => {
- this.id = next.id;
- this.person = next;
- this.isLoading = false;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement