MVVM - robielcpnv/What_the_dog GitHub Wiki

MVVM

MVVM is a Design pattern aiming to separate the presentation logic of an application into 3 layers :

  • Model
  • View
  • ViewModel

MVVMPattern

Model

The model contains the data related to the business logic.

View

The view is the description of the graphical interface, it makes the link between the user's actions and the view model.

ViewModel

The view model is responsible for transforming and organizing the business models in order to expose the data to be displayed by the view.

Data Binding

Data Binding is a mechanism that describes the link between a graphical component and a data exposed by the ViewModel.

Source