Model View Controller (MVC) is a design pattern which splits up different aspects of Software application development. MVC is one of the core features of Angular JS, where it separates the presentation logic from business logic and presentation state hence promotes the creation and maintenance of elements independently over other.
Here let’s have a brief understanding of the MVC pattern and in upcoming tutorials let’s have a detailed understanding of it with examples.
The view is something that user can see and interact with it also called as presentation layer of MVC. For example, user login details into “XYZ” website are submitted through the view.
Presentation state and data of an element are stored in a model. For example, user logged in details are stored in it
The controller handles business logic and acts like a glue between VIEW and MODEL. Any changes in View are reflected in model and changes in Model will be reflected in View through controller thus enforcing the two-way data binding.