Runoob Tutorial ArchiveEnglish

Angular 2 Tutorial

Angular 2 Tutorial

angular

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.

toolchain

As shown in the figure above, the following module loader is required in an ES5 browser:


Related reference documents