Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Alert returning error on confirm to open modal

$
0
0

guys I have a question here, I’m wanting to open a modal when I click on “Eu Quero” in the alert, but it’s giving an error, what am I doing wrong?

  modalAssine(){
    let confirm = this.alertCtrl.create({
      title: 'Conteúdo exclusivo para licenciados',
      message: 'Adquira 7 dias grátis ',
      buttons: [
        {
          text: 'Agora não',
          role:'cancel',
          cssClass: 'confirmBtnDimiss',
          handler: () => {
          }
        },
        {
          text: 'Eu quero',
          handler: () => {
              const modal = this.modalCtrl.create(AssinarPage);
              modal.present();
          }
        }
      ]
    });
    confirm.present();
  }

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>