Tengo dos componentes padre e hijo. componente secundario es una superposición modal (ventana emergente). En el componente principal con un clic, tengo que abrir modal. hasta aquí lo he hecho, pero una vez que cierro modal, no puedo abrir modal nuevamente.
componente padre html
<a (ckick)="openLearningPathPopup()"> click here </a> <div id="learningPopup" *ngIf="showLearningPopup"> <app-ds-emp-learning ></app-ds-emp-learning> </div> parent component ts part showLearningPopup :boolean = false; openLearningPathPopup(){ this.showLearningPopup = true; }