Why using TypeScript to develop AngularJS applications.
For those of us who are front-end developers, hearing about the kindness of developing with AngularJS is no novelty.But I won't focus on AngularJS, I will be talking about our experience using TypeScript to develop AngularJS applications.
If you think I'm going to talk about a new language you are wrong. TypeScript isn't a language, it is a superset of JavaScript which contains a set of characteristics that make developers ‘daily work become much simpler.
We have used TypeScript to develop applications with AngularJS and Node, but almost exclusively with AngularJS. TypeScript has been a powerful tool when defining code organization, not only allowing us to reuse code but also encapsulating related pieces of code into TypeScript modules, which helps in providing transparency to the application architecture.
One of the problems we faced, and which I consider the main disadvantage of using TypeScript, is the necessity of importing AngularJS types ‘definitions.But from my point of view, there are more advantages to take from the use of this tool than problems generated by it. I think the possibilities TypeScript provides allow developers to generate scalable software with higher quality in less time.
Last March Google and Microsoft announced the new version of AngularJS 2.0 was being built with TypeScript. Microsoft promises that version 1.5 will incorporate design improvements which will make working with Angular 2.0 simpler.
The response to this news among AngularJS community has been varied. We are excited about incorporating new functionalities to our projects and we are happy to know we were walking on the right path.