angularJs的学习笔记

angularJs的学习笔记,记录一下,额外学习,不用到项目中,怕以后忘了。

参考地址:http://www.ituring.com.cn/article/13473  改地址比较老了  建议多看看评论  英文好的可以看看这个 https://docs.angularjs.org/tutorial

1.搭建学习环境

    本人用的Mac mini,根据参考地址学习angularJS,需要安装node和Testacular

    a.安装node

           终端中:

git clone git://github.com/joyent/node.git   
cd node
./configure
make   
sudo make install

    安装成功

dzuketomoheitekiMac-mini:node fuyouping$ node --version
v0.13.0-pre

然后安装Testacular单元测试程序,请运行如下命令:testacular也改名karma了,npm install -g testacular应该改为 npm install karma

npm install karma

安装Git工具,然后用以下命令从Github复制本教程项目的源代码文件

git clone git://github.com/angular/angular-phonecat.git

哎  那个地址是个坑  我删除重新来  rm -rf angularJS

 

1.下载angular-phonecat

git clone --depth=14 https://github.com/angular/angular-phonecat.git
The --depth=14 option just tells Git to pull down only the last 14 commits. This makes the download much smaller and faster. 意思大概是  获取最后14次的提交 这样下载更快文件更小

进入angular-phonecat

cd angular-phonecat/

2.安装node,上面已经有了

node --version  或者  node -v  查看node的版本   这里更方便
apt-get install nodejs-legacy npm

如果没安装npm 使用 install npm

3.运行 npm start   然后再浏览器访问 

http://localhost:8000/app/index.html

新手学习,很多地方有错,谢谢。

转载于:https://www.cnblogs.com/monsters/p/4516614.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值