How "Angular2" Creates a ANGULAR2 project

Source: Internet
Author: User
"Preface"

This is also from the document written by Xiaofeng, I do end-to-end testing when the project is used. "Body"

Project Flow install webstorm-Continuous Integration Server

Download Address: http://www.jetbrains.com.cn/webstorm.html

New ANGULAR2 Project

Enter directly from the command prompt:

ng New Angular-cli-project

PS:ANGULAR2 basic files have been created, the next is to download the project depends on the Nodejs package, with Ng new Angular-cli-project, directly create if not terminated, the default with NPM from the foreign web site download resources, download speed is very slow. So after downloading the basic files, terminate the process, and then navigate to the project directory with the Nodejs package that the CNPM download project relies on

Enter directly from the command prompt:

CD Angular-cli-project

Install all Node.js packages that the project relies on

Enter directly from the command prompt:


start the Web server

Enter directly from the command prompt:

ng serve

Effect Chart:


PS: In addition to starting the project with Ngserve, you can enter it directly at the command prompt: CNPM start. 3. The official website

ANGULAR2 Chinese official website: https://angular.cn/docs/ts/latest/tutorial/toh-pt1.html PS

Partners, for ANGULAR2 to build a basic environment, you can first initialize a project with reference to this document, and then you can focus on understanding when you understand:

Meta-testing, typescript, two-way binding of data, sass, directives, encapsulating custom UI components, and other ANGULAR2 features.

Related projects:

Angular2-seed, Angular2-spa-datagrid, Angular2-typescript-gulp-master, switching-to-angular2

PS: Related items are placed on the GitHub, so you can download them from the command prompt:

can refer to the blog of the 12 issue Yang Xiaofun: preliminary Implications of ANGULAR2

Other related research blog as follows: "Angular2 typescript" "Front-End Engineering of the Nodejs"

"The front-end engineering of NPM", "The First Knowledge Gulp"


"Summary"

The basics are all summed up, and then you may be able to write a few principles. Or the characteristics of the thing, is the advanced bar.


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.