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

76
Vistas
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 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