material icon indicating copy to clipboard operation
material copied to clipboard

Reference app for using Material Design with Angular 2

Open tapas4java opened this issue 11 years ago • 20 comments

Is there any reference application available for using Angular2 with Material Design?

tapas4java avatar Mar 11 '15 01:03 tapas4java

The question of angular material with A2 came up at the conference last week. The answer was something along the lines of: that they would address this after they ship the finished angular material for the current 1.x.

kylecordes avatar Mar 11 '15 02:03 kylecordes

That is correct, it will happen after Angular Material hits 1.0. The ngMaterial forum is a better place for questions like these, btw.

marcysutton avatar Mar 11 '15 04:03 marcysutton

I created a really simple demo app showing how to use the new angular material alpha with Angular2:

http://plnkr.co/edit/QtOsjtDvUGuTYmDTmm6f?p=preview

urish avatar May 16 '15 16:05 urish

@urish The example in plunker is not showing anything beside a header. Due to changes in Angular2?

mattiLeBlanc avatar Aug 13 '15 02:08 mattiLeBlanc

@mattiLeBlanc,

You can check below working Plunker. The problem is it only works with Angular alpha-23.

Working Plunk

tapas4java avatar Aug 13 '15 03:08 tapas4java

Yes I can confirm that it works. I moved back to Angular 1 for now, because I can't go in production with Angular 2 with Meteor and Material design being under development. Thanks for sharing the working Plunker

mattiLeBlanc avatar Aug 17 '15 11:08 mattiLeBlanc

Maybe, you can provide, for example material button example. Because Im trying to use

<md-content>
    <md-button class="md-raised md-primary">Primary</md-button>
</md-content>

or 

<md-button class="md-raised md-primary">Primary</md-button>

and no luck :(

storytime avatar Oct 20 '15 08:10 storytime

Doesn't work anymore :)

neilyoung avatar Dec 29 '15 23:12 neilyoung

@storytime any success with this?

webknjaz avatar Jan 05 '16 21:01 webknjaz

Anyone have workable demo ?

osi-bhushankumar avatar Jan 06 '16 09:01 osi-bhushankumar

@osi-bhushankumar I've fixed @tapas4java's example, so it works now, but <md-button> still doesn't work. http://plnkr.co/edit/0Rh5sYVeqFZIDoLgIXSw?p=preview

webknjaz avatar Jan 06 '16 18:01 webknjaz

Guys, I've found ng2 fork: https://github.com/justindujardin/ng2-material

webknjaz avatar Jan 07 '16 18:01 webknjaz

You can follow the development of the Angular 2 Material components on our repo: https://github.com/angular/material2

jelbourn avatar Jan 07 '16 19:01 jelbourn

Given the overlap between early adopters of Angular Material and early adopters of Angular 2 the lack of Angular 2 support is a problem and should be given a higher priority.

We would like to consider Angular 2 for a project scheduled for a May release, but are blocked by an earlier commitment to Angular Material.

KZRepository avatar Jan 23 '16 19:01 KZRepository

+1 StrechKids

loul42 avatar Jan 25 '16 21:01 loul42

It seems the team is putting all its effort on Angular Material 1.x.

Many other options are available for angularjs 1.x (which are at a later stage and far more stable than Angular Material 1.x). The time the team will reach the stability needed for a production system, more people will be using angularjs 2.x than angularjs 1.x.

IMHO it is a waste of time to focus on 1.x!

natcohen avatar Jan 28 '16 07:01 natcohen

Many other options are available for angularjs 1.x (which are at a later stage and far more stable than Angular Material 1.x). The time the team will reach the stability needed for a production system, more people will be using angularjs 2.x than angularjs 1.x.

IMHO it is a waste of time to focus on 1.x!

I don't agree. There aren't enough Angular 2 users yet to vet Angular Material and there were none at the time of the beta and RC releases. It needs to be more of a parallel track. But an Angular 2 release for May-August would probably need a beta Angular Material for Angular 2 release now.

KZRepository avatar Jan 28 '16 12:01 KZRepository

We are in the same boat. Starting a new project and want to go with Angular2 to be future ready, but lack of angular material support is holding us back.

jaichandra avatar Feb 23 '16 16:02 jaichandra

Hope this helps, a first look at the ng2 material components integrated into a demo app https://youtu.be/ngkVXUCBozc

ajtowf avatar Mar 25 '16 19:03 ajtowf

@ajtowf Thanks a ton for making that video! I finally feel like I have a decent grasp of the SystemJS loader after watching you figure it out.

ChuckkNorris avatar Apr 25 '16 04:04 ChuckkNorris