Angularjs's study notes

Source: Internet
Author: User
Tags install node

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.