Creating your first Angular web application
Let's start by a quick overview of an Angular application. We won't go into the details of the framework because it's not the purpose of this book. Angular is a framework for building web applications in HTML and JavaScript. It consists of multiple libraries, some of them core and other optional. You create an Angular application by writing HTML templates with Angularized markup, writing component classes to manage those templates, adding application logic in services, and boxing components and services in modules. Of course, there is more to it than this, and you can read more on the Angular website, https://angular.io/docs/.
Why Angular is so popular? From my point of view, the most relevant reasons are as follows:
It's very easy to structure your code using the MVC (Model-View-Controller) pattern
The two-way binding allows you to significantly reduce the amount of code to keep the model and the view synchronized
The HTML and the JS code is very...