Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
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 Respostas
Responde à pergunta

0

replace

this.addImageLan;

with

this.addImageLan();
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda