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'srun
block:I was having this problem rendering, more design elements dynamically using javascript CDM (eg menu) it was not rendered correctly. I created a solution to run componentHandler.upgradeDom () only when a new element is added:
Problem solved!
You can include the .css and .js files like instructed on the Material Design Lite website, then just do the following when bootstrapping your app or when a controller loads.
or
Disclaimer: I am the author of this project
You can use
Material Design Lite
in your angular apps.I believe you're looking for an angular wrapper on top of Material Design Lite.
There's this package under heavy development and it already has some directives implemented with configurable options (floating text fields) http://jadjoubran.github.io/angular-material-design-lite/
If you want a full UI written in angular, you can use Angular Material
There is a less brute force way to upgrade the elements: no need for checking intervals or upgrading the whole DOM when something changes. MutationObserver already tells you exactly what's changed.