I am aware of Angular Material which helps implement Material Design specification for use in Angular single-page applications.
I'm however taking a look at Material Design Lite alternative to integrate with my Angular project. I will like to know the best way to go about integrating Material Design Lite with and AngularJS app.
Emjay's second answer worked for me. You can additionally reduce boilerplate by tossing the upgradeAllRegistered
method into Angular's run
block:
angular.module('app', [])
.run(function ($rootScope,$timeout) {
$rootScope.$on('$viewContentLoaded', ()=> {
$timeout(() => {
componentHandler.upgradeAllRegistered();
})
})
});