Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Material Design Lite Integration with AngularJS [closed]

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.

like image 583
dantheta Avatar asked Jul 07 '15 20:07

dantheta


People also ask

Can I use angular material with AngularJS?

The AngularJS Material library is a mature and stable product that is ready for production use. Developers should note that AngularJS Material works only with AngularJS 1.

Is material UI good for angular?

Both Bootstrap and Material-UI can be applied successfully for certain project types, but if we're talking about the superb user experience created using the good-looking and consistent components, Angular Material would be the best choice.

Is material design and angular material same?

Angular material and material design basically the same. Material design is abstract for mobile and web. Angular material is implemented for Angular. So if you use "Angular material" you are using "Material design".

What is material design Lite used for?

Material Design Lite. Material Design Lite lets you add a Material Design look and feel to your websites. It doesn't rely on any JavaScript frameworks and aims to optimize for cross-device use, gracefully degrade in older browsers, and offer an experience that is immediately accessible.


2 Answers

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();           })         })       }); 
like image 96
mpint Avatar answered Oct 02 '22 15:10

mpint


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

like image 24
Jad Joubran Avatar answered Oct 02 '22 15:10

Jad Joubran