682 shaares
55 liens privés
55 liens privés
The basic MVCVM guidelines we follow are:
- Views display a certain shape of data. They have no idea where the data comes from.
- ViewModels hold a certain shape of data and commands, they do not know where the data, or code, comes from or how it is displayed.
- Models hold the actual data (various context, store or other methods)
- Controllers listen for, and publish, events. Controllers provide the logic that controls what data is seen and where. Controllers provide the command code to the ViewModel so that the ViewModel is actually reusable.