Cannot read property 'close' of undefined
jayantsr83 opened this issue · 0 comments
jayantsr83 commented
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();