Last active
March 26, 2016 20:36
-
-
Save MacKentoch/a309d550cba0ab18ee62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare let componentHandler: any; // need to use external in angular2? Ok no pb, but declare it before like that | |
@Component({ | |
selector: 'app', | |
... | |
}) | |
export class App implements AfterViewInit { | |
ngAfterViewInit() { | |
componentHandler.upgradeDom(); // upgrade all mdl components | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment