Topic: Modal on component initialization

Henrik_oellgaard pro asked 5 years ago


Hi, I'm having trouble showing a modal on component init. I want a modal shown on a redirect from another component. However, as far as I can see showing the modal requires a click or other event. Can I do this programmatically without an event to trigger?


Damian Gemza staff answered 5 years ago


Dear Henrik,

You can use our global ModalService to call modal programmatically without using button or something like this.

Please check our Modals documentation.

Best Regards,

Damian



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.3.0
  • Device: Any
  • Browser: Any
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags