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

160
Visualizações
Ionic 2 loading spinner user dismissal

So I have a loading spinner currently working well in my Ionic 2 app. I can even dismiss it after a certain time and display a custom spinner popup. However, what I would like to implement is for the ability of the second popup spinner to be dismissed by the user - This would be useful for when the app takes a long time or hangs on loading certain things.

I have tried adding a (click) event to the popup but keep getting a "sanitising HTML stripped some content" warning and the popup remains unresponsive.

Is there a way I can get a loading popup to be dismissed on request?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I use this to remove any overlays present on the screen.

let activePortal = ionicApp._loadingPortal.getActive() ||
        this.ionicApp._modalPortal.getActive() ||
        this.ionicApp._toastPortal.getActive() ||
        this.ionicApp._overlayPortal.getActive();
      if (activePortal) {
        activePortal.dismiss();
      }

I generally use it with a back button listener so the user can remove the overlays on back press in android.

over 4 years ago · Santiago Trujillo 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