AngularJS framework overview
Now, since we are ready with our HTML5 web application setup, we can go through the basics of AngularJS. This will help us to understand the AngularJS code. This section depicts the high level of understanding that you can utilize to understand the sample application and explore further using AngularJS documentation or by referring to other Packt Publishing resources.
AngularJS is a client-side JavaScript framework. It is flexible enough to be used as a model-view-controller (MVC) or a model-view-viewmodel (MVVM). It also provides built-in services such as $http
or $log
using a dependency injection pattern.
MVC
MVC is a well-known design pattern. Struts and Spring MVC are popular examples. Let's see how they fit in the JavaScript world:
- Model: Models are JavaScript objects that contain the application data. They also represent the state of the application.
- View: View is a presentation layer that consists of HTML files. Here, you can show the data from models and provide...