Data Synchronization |
The ViewModel and the View each hold their own copy of the data shown on the View. Moreover, the ViewModel often also needs to duplicate at least some of the data provided by the Model. Data therefore needs to be synchronized between these entities. The following sections detail the responsibilities of the developer and suggest supporting classes.
Note |
---|
The developer responsibilities below should be read as suggestions rather than rules. For complex scenarios, it probably makes sense to implement things as suggested. In simple cases shortcuts can be taken, for example:
|
This topic contains the following sections:
Entity | Developer Responsibilities | Supporting Classes |
---|---|---|
Model |
| |
ViewModel |
| |
View |
|
Entity | Developer Responsibilities | Supporting Classes |
---|---|---|
Model |
| |
ViewModel |
| |
View |
|
Entity | Developer Responsibilities | Supporting Classes |
---|---|---|
Model |
| |
ViewModel |
| |
View |
|