Google and Microsoft are writing the Angular 2 framework in TypeScript.
Today, during the opening keynote at ng-conf in Salt Lake City, members of the Microsoft TypeScript team and Google’s Angular development manager Brad Green announced the Angular 2 framework will be written in TypeScript, Microsoft’s superset JavaScript language.
The AngularJS framework and library for building Web applications has traditionally been written in JavaScript, but the companies announced their collaboration on Angular 2 would enhance it with a new set of cross-platform tools. As part of Angular 2, TypeScript will adopt key features of Google’s AtScript superset language and runtime as the teams work to converge the two languages under TypeScript in Angular 2.
According to a blog post from S. Somasegar, corporate vice president of Microsoft’s Developer Division, the companies plan to have the languages combined with the release of TypeScript 1.5. In addition to adding features and syntax from the upcoming ECMAScript 6 release to TypeScript, Google and Microsoft are working jointly to propose ECMAScript 7 extensions for optional static types and decorators.
“Working closely with a rich library like Angular has helped TypeScript to evolve additional language features that simplify end-to-end application development, including annotations: a way to add metadata to class declarations for use by dependency injection or compilation directives,” said Somasegar.
Developers can still choose to write Angular 2 applications in traditional JavaScript. More details about Angular 2 in TypeScript can be found in the Microsoft announcement and in the TypeScript road map.