Question - Explain MVVM pattern.
Answer -
MVVM pattern divides the UI code into 3 basic parts:
- Model – It represents a set of classes, which contain data received from databases.
- View – It is the code that agrees with the visual representation of the data.
- ViewModel – It is the layer that binds View and Model together. It presents this data in a manner, which is easy to understand. It also controls how View interacts with the application.