Recently I was asked what is the relationship between the Model/Controller/View in MVC pattern by my colleague. But unfortunately I think I didn't give a good explanation to him. So I search it in the google . and found most of diagrams put like this below.
Actually some parts of them I am not sure if I understand well. Please help to review it.
- Controller is responsible for updating the Model.(Controller->Model)
- Model can apply the change to the View when it is changed. and view can apply the change to the Model if the binding value from the Model is changed in the view.(Model<->View)
- The view can accept the user actions so that sumbit all the UI inputs to Controller.(View->Controller)
- The controller would determine the which view can be display based on the User Actions.(Controller->View)
Thanks.