I have two methods that make api calls and return observables.
private method1(): Observable<Home> {
return homeService.call.get();
}
private method2(): Observable<User> {
return userService.call.get();
}
Then I have the following two methods:
private method3(): void {
this.method1().subscribe();
this.method2().subscribe();
}
and one last one
private method4(): void {
// does things
this.method3();
}
I want the method4
to wait for the method3
to finish all is requests in order to proceed, but I have no idea how to achieve it in angular 8. Any tips?