I want to make multiple http calls synchronously at different levels in angular 2 using rxJS For Eg , I am having a resolver service which handles 5 api calls like a,b,c,d and e.
I want them to execute in this order and I am not using any of those output values as input so I need all responses only at end.
first a should be called and once api is completed second b,c, d third after b,c,d completed then e should be called
In activated Route , I need to retrieve those values and use it I have already tried below stuff but I am getting response of A and E only and I could not able to fetch the values from inner observable
resolve(a,b){
return A.flatMap(data=> {
return forkJoin (
B,C,D)
}).flatMap(xres => {
return E
})
}
route.data.dataA
route.data.dataBCD
route.data.dataE