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
- 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