[AngularJS 2 Practice One] My First Angular App

Source: Internet
Author: User

Recently have been looking at the information about Angularjs 2, to see a lot of information on the Web and official website, then follow the official website tutorial Step by step to build my first angular App

AngularJS 2 Instructions Please refer to: HTTP://CNODEJS.ORG/TOPIC/55AF2BC4911FB957520EACEF

Website Tutorial Address: https://angular.io/docs/ts/latest/quickstart.html

    1. First download angular QuickStart source directly on GitHub, of course, this source code is not directly run up. Github:https://github.com/angular/quickstart

After download directly unzip, I unzip here to F:\StudyInfo\AngularJS2

2. Install node. js and NPM Note: Version requires node v4.x.x or high and NPM 3.x.x higher, to the official website directly download the latest version of the installation. Here you only need to download the Nodejs installation, which comes with the NPM version.

node.js:https://nodejs.org/en/

Check version input command after installation is complete: node-v npm-v

3. Follow the instructions of the official website step by step to create and configure the app project, I here directly github download decompression omitted the intermediate configuration and creation steps, directly to the decompression directory to install the package

Detailed configuration can view the official website and press pack view

Website:

Unpack the package:

Switch to unzip directory input command: NPM install

You need to wait a while after entering the command, there will be some warning message, do not control it

After the installation is complete, enter the command: NPM run typings Install

4. Launch the App

Input command: NPM start

  

HTML code:

  

Run successfully

  

[AngularJS 2 Practice One] My First Angular App

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.