Is it good way to call subscribe inside subscribe?
问题 this.service.service1().subscribe( res1 => { this.service.service1().subscribe( res2 => { this.service.service1().subscribe( res3 => { this.funcA(res1, res2, res3); }); }); }); I need to pass three data to one function from three different API's. Is it a good practice to subscribe inside a subscribe? If not, Please suggest the best way. 回答1: The correct way is to compose the various observables in some manner then subscribe to the overall flow - how you compose them will depend on your exact