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

92
Visualizações
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 à 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