Is there any way to add a timer value (10 seconds), same as the duration of the loader to message of ion-loading

#1

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?

#2

Not that I know. Use a popover instead