Model - contains the data
View (the Web page) - will display and allow the user to manipulateController - links the Model and the View, and manages all interaction and processing of the data in the Model
Execution Events:
1. User interaction with the View raises events in the Controller
2. The Model then raises events to update the View
However, this introduces a dependency between the Model and the View. To avoid this, the MVP pattern uses a Presenter that both updates the Model and receives update events from it, using these updates to update the View.
No comments:
Post a Comment