Topic: Modal Open Dynamically

Ritten pro asked 5 years ago


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?

Arkadiusz Idzikowski staff answered 5 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

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: 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