In Ionic 3
I have used the LoadingController
after each button got clicked, so that the button was “blocked” for more requests and the app user can see “the process is working…”. In Ionic 4 the LoadingController
is asnychronous. So i can’t use it in this way, any tricks what I could do?
async presentLoading(text) {
this.loading = await this.loadingCtrl.create({
message: text,
duration: 40000
});
await this.loading.present();
const { role, data } = await this.loading.onDidDismiss();
console.log('Loading dismissed!');
}