Misc Flashcards
1
Q
What is MVC
A
Model-View-Controller
Model
Manages the data and business logic of an application. For example, in a to-do app, the model code would define what a “task” and a “list” are.
View
Handles the layout and display of an application. This is the code that makes an app look nice and defines how the user interacts with it.
Controller
Routes commands to the model and view parts. The controller acts as a liaison between the model and the view, receiving user input and deciding what to do with it