Observable.forkJoin( code example
Example: Angular forkjoin
forkJoin([
getData1(), //observable 1
getData2() //observable 2
]).subscribe(([response1, response2]) => {
// When Both are done loading do something
});
forkJoin([
getData1(), //observable 1
getData2() //observable 2
]).subscribe(([response1, response2]) => {
// When Both are done loading do something
});