Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

74
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!