Skip to content Skip to sidebar Skip to footer

Material Design Lite Not Fully Working With Angular2

I have a simple HTML template built with MDL. When I place the template into Angular2 App. Elements' actions and clicks are not working E.g : Showing dropdowns or clicking tabs etc

Solution 1:

Call componentHandler.upgradeDom(); in ngAfterViewInit() and each time later when the DOM was modified:

ngAfterViewInit() {
  componentHandler.upgradeDom();
}

See also Material Design Lite tooltips not working with Angular 2

Post a Comment for "Material Design Lite Not Fully Working With Angular2"