I\'m writing an app in Angular 2 and I want to execute several http requests and run a function on the responses.
In Angular 1, I would write something like $q
$q
As @Eric Martinez pointed out, there is forkJoin. forkJoin runs all observable sequences in parallel and collect their last elements.
Rx.Observable.forkJoin([a,b]).subscribe(t=> { var firstResult = t[0]; var secondResult = t[1]; });