InfomediaLtd / angular2-materialize

Angular 2 support for Materialize CSS framework.
https://infomedialtd.github.io/angular2-materialize/
MIT License
407 stars 140 forks source link

a modal opening on the page loading #369

Open rockomatthews opened 7 years ago

rockomatthews commented 7 years ago

I am trying to use the example of opening a modal found in the npm instructions and can get the modal to work fine as exemplified but am having trouble figuring out how to make it load upon coming from the component the user is in beforehand. Basically I want my new user hat just registered to receive a modal "popup" when hitting the next route of when the next component is opened. Thanks in advance!

rubyboy commented 7 years ago

Not sure what you meant. Are you trying to programmatically open a modal? Here's an example: https://github.com/InfomediaLtd/angular2-materialize/issues/347#issuecomment-323516845 (calling openModal1 will open the modal)