3

I am migrating my existing project from Angular 1.5 to Angular 2. I have used Angular Material 1.1.1 with Angular 1.5. Is there any way to keep using Angular Material v1.1.1 with Angular 2.

The reason is, Angular Material is in beta right now and is expected to get stable released by late fall (based on article/s online). My company's product release policy states that we cannot use any technology that is in beta at the time of release. And our product release is scheduled around Feb-Mar'2017.

I have done enough web search and even Angular Material website states

"Developers should note that Angular Material v1 works only with Angular 1.x."

I'm here to seek workarounds and options available to use this combination.

Also if anyone has any concrete idea about release date for Angular Material 2, please let me know.

Daniel
  • 3,541
  • 3
  • 33
  • 46
B Bhatnagar
  • 1,706
  • 4
  • 22
  • 35
  • If you release in a few months, is it the right time to migrate to Angular2? Either don't migrate or find a replacement library. – crashmstr Jan 05 '17 at 12:58
  • 1
    This is very similar to http://stackoverflow.com/q/30611457/633107 – Splaktar Jan 05 '17 at 20:44
  • Possible duplicate of [How to use angular material (https://material.angularjs.org) in Angular 2 Apps](https://stackoverflow.com/questions/30611457/how-to-use-angular-material-https-material-angularjs-org-in-angular-2-apps) – Daniel Aug 28 '17 at 01:19

2 Answers2

2

No. You can only use the layout stuff by including the CSS files from 1.1.1.

kuhnroyal
  • 7,188
  • 1
  • 34
  • 47
  • For flex layouts in Angular 2+, you can use https://github.com/angular/flex-layout which just entered Beta. – Splaktar Jan 07 '17 at 01:04
1

No, Angular Material 1.x does not support Angular 2+. You can see some of the issues and discussion around this in issue #6336. Basically, many of the existing, tested components would need to be re-written (many months of work).

material2 only recently (Dec 2016) entered beta and may not be ready for all production applications. If you need Material Design for your Angular 2 app ASAP, then contributing to material2 is your best option. There is no known release date of material2 1.0 and you should not plan your projects expecting the release date to fall on a certain date in the future.

As far as I know, there is no Material Design library that is production ready (out of beta) for Angular 2+.

I was using Angular2-Polymer with Polymer paper elements to get Material Design in my Angular 2+ applications, but breaking changes in Angular 2.2 have broken that integration and may require a significant re-write of the lib.

Material Components for the Web may someday be another option, but they are in alpha atm.

Splaktar
  • 5,506
  • 5
  • 43
  • 74