Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

143
Vistas
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 Respuestas
Responde la pregunta

0

replace

this.addImageLan;

with

this.addImageLan();
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda