I have 3 asynchronous typescript methods, which are to be executed in parallel as i have shown below. I want to execute the last function after all the 3 of them had finished the execution . How could i accompany this.
this.getTimeLecs(prevTimeStartStr , nowTimeStartStr).then((result) => {
// console.log(result);
this.previousData = result;
});
this.getTimeLecs(nowTimeStartStr, nextTimeStartStr).then((result) =>{
this.currentData = result;
});
this.getTimeLecs(nextTimeStartStr , nextTimeEnd ),then(result) => {
this.nextData = result;
};
finalFunction();