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

75
Visualizações
Continuing the function without waiting promise in angularjs?

I have a function calling promise from backend.It is a list of emails. What i am trying to is giving button a text according to the number of emails that user have. For example,If there is no email subtext will say you dont have a email add one etc..

return customerEmailService.getEmailList().then(function (emails) {
              if (emails.emailList.length === 0) {
                button.active = false;
                button.subtext = 'Mail Not Found';
                if (flowScope.get("emailWihoutDispense")) {
                  button.onClick = function () {
                    message.error(mailNotFoundErrorWithoutDispense());
                  };
                }...

button.OnClick is working fine but button.subtext is not seen in the screen and I want to wait this function to show the subtext on the screen.How can i do that?

about 4 years ago · Juan Pablo Isaza
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