Monday, March 13, 2017

Sencha Touch - MVC

MVC stands for Model View Controller. It is an architectural pattern which separates application into logical components making it more manageable.
The below diagram shows how MVC archtecture works:

Controller: Controller controls whole application it notify view if model is changed and performs actions based on user inputs.
View: It contains the interface part of the application which is visual to user. It notify controller to change model on user input.
Model: It contains the objects which binds the store data to view. It is representation of the real world object which basically deals with database. It also notify controller for any change in view.

No comments:

Post a Comment