I am using ionic 4 with Angular 7, to create a loading icon
Code:
async presentLoadingWithOptions(message) {
const loading = await this.loadingController.create({
spinner: 'bubbles',
duration: 10000,
message: message,
translucent: true,
cssClass: 'custom-class custom-loading'
});
await loading.present();
const { role, data } = await loading.onDidDismiss();
do something();
}
}
I want to pass 10, 9, 8, 7 6, 5 … 1 as a message, to the loader. Is there any possibility to do that?