Search code examples
angularmaterial-design-liteangular2-mdl

angular 2 + MDL blank pages


I'm trying to develop a web app with Angular 2 and Material Design Lite.

But all the html pages comming from binded components and using MDL are not displayed.

After hours of searches on the internet, I found out that it is quite a common problem and many people say that it is better not to use MDL with angular 2.

Did anyone manage to make these two frameworks work together ?

Thanks


Solution

  • It's easy. Just use angular2-mdl. See the demo app http://mseemann.io/angular2-mdl/ or the corresponding github project: https://github.com/mseemann/angular2-mdl. If you want to play around there is a plnkr link in the github project.

    enter image description here