0👍
async/await functions :
async getDatafor(){
for(let i = 0; i < this.desserts.length; i++){
this.val_ia = i;
await Promise.all([this.getAllData()]);
}
},
Source:stackexchange.com
0👍
async/await functions :
async getDatafor(){
for(let i = 0; i < this.desserts.length; i++){
this.val_ia = i;
await Promise.all([this.getAllData()]);
}
},