How to acheive this?


#1

I have such code.

Array.forEach(item=>{
call Httprequest().then(result=>{
update var;

});
});

my question is how to sync var’s value before update. thanks.


#2

Look into the rxjs forkJoin operator.


#3

thanks a lot, forkJoin can be used for my purpose.