this.rateService.deleterateSheet(formattedData).toPromise().then(
rateData => {
alert('deleting')
this.rateService.gettingRates(this.accountId).toPromise().then(
ratesData1 => {
this.rates = (ratesData1['data']);
this.snackBar.open('RateSheet Deleted', 'OK', { duration: 3000});
}
);
}
);
Progress achieved!
Farewell to the alert option.
Are there any alternatives rather than using delay to pace my second API call in Angular 5?
I relied on alert to slow down my API calls.
I attempted both delaying and utilizing a regular method separately. It didn't yield positive results.
Seeking a better approach!