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

91
Views
Variable set from child HTML not reflecting in controller

I have an Angular js project.

I have a main.html file and inside main.html file, i have included modal.html file.

I have a variable defined in controller i.e; showModal=false;

When I click on the button which is inside main.html file the "showModal becomes true as I have done".

But when I click on the close button inside my modal.html file the popup gets closed but the value does not become false in the controller.

How can I achieve it?

Alternatively, I have created a separate function and inside that, I am setting showModal=false but I don't want to do it like that.

I just want to set showModal=false on ng-click in modal.html file.

Thanks in advance.

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!