📜 ⬆️ ⬇️

Angular 2: Built on TypeScript

We are pleased to present the result of a long month partnership with the Angular team.

This partnership was very productive and gave us rewarding experience, and as part of this collaboration, we are pleased to announce that Angular 2 will now be built on TypeScript. We look forward to seeing what people will be able to do with these new tools and continue working with the Angular team to improve aspects of product use by Angular developers.


The first fruits of this collaboration will be the TypeScript 1.5 release.
')
We worked with the Angular team to develop a set of new features that will help you develop cleaner code when working with dynamic libraries like Angular 2, including a new way to annotate class declaration using metadata. Libraries and application developers can use these metadata annotations to cleanly separate code and code information, such as configuration information or conditional compilation checks.

We also added the ability to retrieve type information at runtime. In activation mode, this will allow developers to implement simple type introspection. To verify the correctness of the code with additional checks at runtime. This will also allow libraries such as Angular to use type information to set dependency injection based on the types themselves.

TodoMVC for Angular 2 on TypeScript


At ng-conf, we review this work by showing the example of TodoMVC, based on David Isst's TodoMVC . You can try this example yourself. If you are new to TypeScript, you can also explore TypeScript through our interactive platform .

We would like to hear your opinion.

image
Autofill TypeScript in Sublime 3 for Angular 2

We look forward to the release of TypeScript 1.5 beta in the coming weeks, and with this growth TypeScript support for development tools to include great development styles and environments. We would also like to express our deep gratitude to Brad, Igor, Miško from the Angular team for their partnership. Special thanks to Yehuda Katsu, who helped us in the development of annotations and the proposal of the decorator, which helped us to realize this task.

Source: https://habr.com/ru/post/252337/


All Articles