Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
Not able to call a method in AlertController

I'm trying to upload a file only if the user clicks on 'Yes', it is not calling the method but

new to ionic so I'm not sure if this is right way to call a method in Alert.

 async presentAlertConfirm() {
  const alert = await this.alertController.create({
    header: 'Upload Documents',
    subHeader: 'Do you want to Upload Documents?',
    mode: 'ios',
    backdropDismiss: false,
    buttons: [
      {
        text: 'NO',
        role: 'cancel',
        cssClass: 'secondary',
        handler: (blah) => {
          console.log('Confirm Cancel: blah');
          
        }
      }, {
        text: 'YES',
        handler: () => {
          console.log('Confirm Yes, yipe')
        // this.changeListener
          this.addImageLan;
          // const el: HTMLElement = document.getElementById('test');
          // el.click();
        }
      }
    ]
  });
  await alert.present();
}

Any help will be useful

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

replace

this.addImageLan;

with

this.addImageLan();
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!