Skip to content

salansun/angular-material2-demo1

Repository files navigation

AngularMaterial2Demo1

此项目用来示范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,因为改了可能导致狂多的错误啊!!!我搞了一整个晚上才把那些恶心的问题解决了。

AngularMaterial2Demo1

This project shows a demo of angular-cli and angular2-material for angular2.0.

Usage

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.

Note

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.

About

Demo project for Angular-Material2 with Angular2.0.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors