This chapter covers:
- A quick intro to the Angular framework
- How to generate, build and serve a Web app written in Angular and TypeScript
- How Angular implements dependency injection
In October of 2014, a team of Google developers was considering creating a new language AtScript, which would extend TypeScript and would be used for developing the all new Angular 2 framework. In particular, AtScript would support decorators, which were not in TypeScript back then.
Then one of the Googlers suggested to meet with the TypeScript team from Microsoft and ask if they would be willing to add decorators to TypeScript itself. The Microsoft folks agreed, and the Angular 2 framework was written in TypeScript, which also became a recommended language for developing Angular apps. Today, more than a million developers use Angular with TypeScript for developing web apps, and this gave a tremendous boost to popularity of this language.
At the time of this writing, Angular has 47K stars and 900 contributors on GitHub. Let’s pay respect to this framework, and see how to use TypeScript for developing Angular apps. This chapter is a brief intro to the Angular ramework.