:grinning: Anyone to help me with that ? I have a class MDL : MaterialDesignLiteUpgradeElements.ts
import {Directive, AfterViewInit} from 'angular2/core';
declare var componentHandler;
@Directive({
selector: '[mdl]'
})
export class MDL implements AfterViewInit {
ngAfterViewInit() {
componentHandler.upgradeAllRegistered();
}
}
And Following this stack post : Material Design Lite tooltips not working with Angular 2 I Added this :
ngAfterViewInit() {
componentHandler.upgradeDom();
}
In the class managing the view using MTL But it say :
MaterialDesignLiteUpgradeElements has no exported member "componentHandler"
The console error :
EXCEPTION: TypeError: Cannot read property 'upgradeDom' of undefined
Any ideas ?