AngularJs version 1 (or just Angular 1) is a very popular JavaScript framework, and was built and distributed by Google. It has, however, been superseded by Angular 2, which uses TypeScript as its language of choice, which we will cover in the next chapter. This section of the chapter will discuss writing Angular 1 code with TypeScript, as an example of a semi-compatible third-party library.
Angular 1 takes a completely different approach to building JavaScript SPA's, introducing an HTML syntax that the running Angular 1 application understands. This provides the application with two-way data binding capabilities, which automatically synchronizes models, views, and the HTML page. Angular 1 also provides a mechanism for dependency injection (DI), and uses services to provide data to your views and models.
Let's take a look at a sample from the Angular v1.7...