InfomediaLtd / angular2-materialize

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

When Router changes the page the materialize module.js stops working #448

Open Bosque77 opened 4 years ago

Bosque77 commented 4 years ago

I am having the same issue as phixMe. When i first get to my page the materialize.js carousel is working. Then when i navigate away from my pages with a routerlink the materialize carousel stops working.

      <li><a routerLink="" style="color:black;">Jersey Miners</a></li>
      <li><a routerLink="/italian-menu" style="color:black;">Italian</a></li>
      <li><a routerLink="/checkout" style="color:black;">Checkout</a></li>

I am not using jquery to initialize the object. I am using the M from the 'materialize-css' module. I also have angular materialize loaded behind angular material in the my configuration package.

Please let me know if there is anything i can do to resolve this issue.