此项目用来示范angular-cli和angular2-material的用法,采用了最新发布的angular2.0。
git clone https://github.com/damoqiongqiu/angular-material2-demo1.git
npm install
npm install -g angular-cli
cd angular-material2-demo1
ng serve
打开浏览器访问http://localhost:4200/
如果能看到界面,说明成功,报一些小错误是正常的,因为官方还在开发中。
网络上有很多实例项目,但是随着Angular2.0的发布,它们基本上都过时了。
所以我创建了这个小项目来给大家示范angular2-material在angular2.0中的用法。
注意,如果你刚开始是用angular2-material,请不要修改package.json,因为改了可能导致狂多的错误啊!!!我搞了一整个晚上才把那些恶心的问题解决了。
This project shows a demo of angular-cli and angular2-material for angular2.0.
git clone https://github.com/damoqiongqiu/angular-material2-demo1.git
npm install
npm install -g angular-cli
cd angular-material2-demo1
ng serve
Open your browser and navigate to http://localhost:4200/
If you can see the page,that means app works,there might be some errors,it's not a problem.
There are a lot of demos out there,but most of them are out of date because angular2.0 has been released in September.
So I created this little project to show you how to use angular2.0 with angular2-material.
Do not change package.json if you are new to angular2-material,because it is still beta,and I spent a whole night to get this demo work.