Angularjs study notes, record, extra study, not to the project, afraid later forget.
Reference address: http://www.ituring.com.cn/article/13473 change address compared to the old suggestion to look at the comments English good can see this https://docs.angularjs.org/tutorial
1. Build a learning environment
I use the Mac Mini, according to the reference address to learn angularjs, need to install node and testacular
A. Install node
In the terminal:
git clone git://github.com/joyent/node.git cd node. /configuremake sudo make install
Installation Successful
Dzuketomoheitekimac-mini:node fuyouping$ Node--versionv0. 13.0-pre
Then install the Testacular Unit test program, please run the following command: Testacular also renamed Karma, NPM install-g testacular should be changed to NPM install Karma
NPM Install Karma
Install the Git tool and copy the source code file for this tutorial project from GitHub with the following command
git clone git://github.com/angular/angular-phonecat.git
Hey, that address is a pit. I removed the RM-RF AngularJS
1. Download Angular-phonecat
git clone--depth= https://github.com/angular/angular-phonecat.git
The--depth= commits. This makes the download much smaller and faster. Meaning is probably getting the last 14 commits so download faster files smaller
Enter Angular-phonecat
CD angular-phonecat/
2. Install node, which already has a
Node--version or node-v view node's version here is more convenient
apt-get install nodejs-legacy npm
如果没安装npm 使用 install npm
3. Run NPM start and then browser access
http://localhost:8000/app/index.html
Novice learning, many places are wrong, thank you.
Angularjs's study notes