Please enable JavaScript.
Coggle requires JavaScript to display documents.
MVC Pattern (Model (should (Contain the domain data, Contain the logic for…
MVC Pattern
Model
-
should
-
Contain the logic for creating, managing, and modifying the domain data
-
should not
Contain logic that transforms the model based on user interaction (because that is the controller’s job)
Expose details of how the model data is obtained or managed (in other words, details of the data storage mechanism should not be exposed to controllers and views)
-
-
View
-
should not
-
Contain logic that creates, stores, or manipulates the domain model