MEANJS and Material: modal dialogs

I’m building an app with http://meanjs.org/ and I’m trying to get a modal dialog where the user is able to do some configurations.

However, the modal example uses this line to open the modal dialog:

<p>
  <a class="btn waves-button waves-effect" data-toggle="modal" href="#modal-big">Full-width Modal</a>
</p>

i.e. the example use a href link to open the modal.

The problem I have is that meanjs doesn’t recognize this route to open the model dialog but to redirect to a page and then meanjs stops this redirection.

How can I open this modal dialog with javascript?

hi @dankenoby the modal javascript is exactly the same as Bootstrap’s default modal, you can use data-target to replace href or use pure javascript to do the job. you can refer to Bootstrap Doc for detailed information.

1 Like