Fork me on GitHub

AngularJS 学习笔记(二) 创建自己的Hello world!

 

确定你已经安装了 node和npm,然后:

  1. 新建项目目录(你可以暂时为其取名quickstart,以后再重命名)。

  2. 克隆或者下载《快速起步》种子到你的项目目录。

  3. 安装 npm 包。

  4. 运行npm start来启动例子应用。

创建自己的Hello world!

建立文件夹 Day1

 

Step1: Clone  quick start project

1. git clone https://github.com/angular/quickstart.git quickstart
2.
cd quickstart
3.
npm install
4.
npm start

 

输入npm start

 

运行成功!

 

 

Step2: 

找到app.components 文件编写代码

 

 

 

posted @ 2017-07-19 12:59  低调的神  阅读(158)  评论(0)    收藏  举报