0

I need to retrieve and use two responses from two different APIs. How can I subscribe to two responses from two different APIs?

this is an example that resembles my code:

this.myService1.getResponse1().subscribe( res1 => this.res1 = res1 );  
this.myService2.getResponse2().subscribe( res2 => this.res2 = res2 );

this.myFunction(this.res1, this.res2);
Mahmoud
  • 768
  • 10
  • 24

0 Answers0