Using Model View Controller (MVC) in AngularJS
AngularJS uses the following Model View Controller (MVC) architecture for organizing applications.
Model for managing data received from a database or from a JSON file.
View for displaying the model.
Controller for programming the interaction between the Model and View.
Use the MVC architecture for developing the user interface of a gadget. MVC architecture helps in separating the gadget logic from gadget data and gadget view. For each gadget:
Create a Model to manage the gadget data and respond to requests from View and instructions from Controller.
Create a View to display the gadget data.
Create a Controller to control the interactions between Model and View, receive input, validate input, and perform operations to modify gadget data.