I need my loop to wait for my function callback to iterate.
Here is my loop:
for(var i=0;i<tab.length;i++)
{
this.fileService.download(tab[i]).then(success => {
console.log("download : "+success);
});
}
console.log("end");
for now my process just start the download and iterate, I want it to end the download function before iterate..
Thank you :)