Make parallel calls http get or post calls in angular 2
问题 How to make parallel calls HTTP get or post calls in angular 2? I have 2 service calls on the response of one callus have to make another call. Could some suggest me how to call make these parallel calls with error handling scenarios? 回答1: If your service is Observable based instead of Promise you can do forkJoin . It runs all observable sequences in parallel. For RxJS version < 6 import 'rxjs/add/observable/forkJoin'; Make sure to import forkJoin from rxjs library Observable.forkJoin