Angular 2 Tutorial
Angular 2 Tutorial

Angular2 is an open-source JavaScript library maintained by Google to assist in running single-page applications.
Angular2 is an upgraded version of Angular 1.x, with significantly improved performance, and it can well support web development components.
Angular2 was released in September 2016, and it was developed based on ES6.
Prerequisites for learning this tutorial
Before learning this tutorial, you need basic frontend knowledge: HTML, CSS, JavaScript. In addition, you also need to understand NPM and TypeScript.
Differences between Angular2.x and Angular1.x
The difference between Angular2.x and Angular1.x is similar to the difference between Java and JavaScript, or rather between Lei Feng and Leifeng Tower, so when learning Angular2.x, everyone needs to be prepared to relearn a language.
Running Requirements!
Because various environments (browser or Node) currently do not support ES6 code, some shims and polyfills (required for IE) are needed to convert ES6 written code into ES5 format so that it can run normally in the browser.

As shown in the figure above, the following module loader is required in an ES5 browser:
-
systemjs- A general module loader that supports loading JS modules in various formats such as AMD, CommonJS, and ES6.
-
es6-module-loaderES6 module loader, systemjs will automatically load this module.
-
traceurES6 transpiler, converts ES6 code to ES5 code supported by the current browser, systemjs will automatically load this module.
Related reference documents
- Angular official website:https://angular.io/
- Angular official documentation:https://angular.io/docs/ts/latest/quickstart.html
- Angular Chinese documentation:https://angular.cn/docs
- Angular Github:https://github.com/angular/angular