zurfyx / angular-custom-modal

Angular2+ Modal / Dialog (with inner component support).

Home Page:https://zurfyx.github.io/angular-custom-modal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'close' of undefined

jayantsr83 opened this issue · comments

Hi i am trying to close modal from component on response but it is not working and throwing error
Cannot read property 'close' of undefined

This is my code below please help me with this.
import { ModalComponent } from "../../modal";

@ViewChild('componentInsideModal') componentInsideModal: ModalComponent;
this.componentInsideModal.close();