MVVM
Model View ViewModel
Last updated
Model View ViewModel
Last updated
Model: This holds the data of the application. It cannot directly talk to the View. Generally, itβs recommended to expose the data to the ViewModel through Observables.
View: It represents the UI of the application devoid of any Application Logic. It observes the ViewModel.
ViewModel: It acts as a link between the Model and the View. Itβs responsible for transforming the data from the Model. It provides data streams to the View. It also uses hooks or callbacks to update the View. Itβll ask for the data from the Model.