Topic: Modal is not showing (only backdrop is showing)
Expected behavior modal.show() opens modal
Actual behavior modal.show() set only backdrop and no modal added
Resources (screenshots, code snippets etc.) I am showing the modal in the ngOnInit function, when the modal is view child variable
like this:
export class ShowAndHideModalComponent { @ViewChild('demoBasic') demoBasic: ModalDirective;
showAndHideModal() { this.demoBasic.show(); } }
Bartosz Termena staff answered 5 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 7.2.0
- Device: B
- Browser: chrome
- OS: windows
- Provided sample code: No
- Provided link: No