Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use angular material (https://material.angularjs.org) in Angular 2 Apps?

I remember having seen angular-material.css being used in one of the Angular 2 Demos at ng-conf. Can someone confirm if this works...

Also, is it possible to use the following in Angular 2 Apps:

  • angular-material.js
  • angular-animate.js
  • angular-aria.js

I know that above js have a dependency on Angular 1.3+, but what if I add that dependency over and above my Angular 2 dependency. Will these work then?

like image 919
Tarun Avatar asked Jun 03 '15 05:06

Tarun


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 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".

Can Angular use material UI?

It integrates easily with Angular Projects because it is built with Angular structure. It can be incorporated with new or existing Angular Application despite the version. It provides tools for developers to build/customize their components. It speeds up the development process of building UI components from scratch.

What is the use of Angular material?

Angular Material is a User Interface (UI) component library that developers can use in their Angular projects to speed up the development of elegant and consistent user interfaces. Angular Material offers you reusable and beautiful UI components like Cards, Inputs, Data Tables, Datepickers, and much more.


1 Answers

So currently you cannot use the current angular material with angular2.

According to Marcy Sutton, they will be addressing incorporation of Angular Material once the team has realeased 1.x.

https://github.com/angular/material2 is the new repo that will be compatible with ng2. There are some forks of Material that may work with ng2 already such as ng2-material.

like image 55
Sean Larkin Avatar answered Oct 20 '22 16:10

Sean Larkin