Topic: Modal Open Dynamically
I am hoping to create a modal as a component, so that i could open it from within many different components. The concept would be that i have a login modal that i want to show from many different pages when a user clicks a feature that requires authentication.
In angular bootstrap we have NgbModal. And using this i could just open a modal using:
constructor(private _modalService: NgbModal) {
this._modalService.open(LoginModalComponent);
};
Now from any different component, where i want to pop up this modal, i can just call this one line and it will display the modal.
Is there anything similar for mdb? Or will i have to implement my own service for this?
Add comment
Arkadiusz Idzikowski staff answered 6 years ago
Dear Ritten,
For now you would need to use your own service. We plan to add this feature but I can't give you an ETA yet.
Regards,
Arek
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: PC
- Browser: Chrome
- OS: windows
- Provided sample code: No
- Provided link: No
Related topics