Dismiss LoadingController doesn't work


#1

Hello,

I have an AlertController which ask the user whether he wants to make an update. When the user click YES it should shows the loading circle and when the update progress is done, it should dismiss the loading circle.

My code works until the dismiss.I also see the console entry after the dismiss, but the loading circle doesn’t close. The code:

    let loading = this.loadingCtrl.create({
      content: 'Loading Update...'
    });
    loading.present();
    this.updater.updateDb().then(() => {
      loading.dismiss;
      console.info("resperLOG: Update Done");
    });

#2

dismiss is a function. loading.dismiss()