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

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