ES5, ES6, and TypeScript Support
Yesterday we reported on the current status of AngularJS 2.0 branch, as presented by the Angular team itself at the Angular U conference in San Francisco.
While yesterday, we focused on how the team aims to improve performance by splitting the rendering engine from the core, by adding server-side rendering support, and by integrating React Native and NativeScript for developing mobile applications, we still left out some other updates.
AngularJS 2.0 is written in Microsoft’s TypeScript
As it turned out, AtScript and Microsoft’s TypeScript had more things in common than anyone expected, and in March 2015 at the ng-conf conference in Utah, the two teams united and decided to merge AtScript into TypeScript and use the last to build the new Angular 2 core.
At the base of the core there’s ECMAScript 5 support, which can then be easily expanded to ECMAScript 6 whenever needed, or replaced with TypeScript to benefit from all those features plus JS types, or expanded with even more features like annotations and decorators.
Misko Hevery presented a demo app during the Angular’s team presentation, in which he showed developers how easy it is to switch from one language version to another in Angular 2. The video is available online, and Misko comes after 26:00.
Credit: Source link