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 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 meeting with the TypeScript team from Microsoft to see 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 TypeScript’s popularity.
At the time of writing, Angular has 56,000 stars and 1,000 contributors on GitHub. Let’s pay respect to this framework and see how we can use TypeScript to develop Angular apps. This chapter will provide a brief introduction to the Angular framework. Chapter 12 contains a code review of the blockchain app written in Angular.