Why MVVM ?
- MVVM is the steps towards future of apps. MVVM allows the application to be easily maintainable.
- MVVM allows us to break down the application in smaller components.
MVVM Stands For M -> Model V -> View VM -> View Model
View Model vs Model
-
View Model: 1. View Model is simply providing some data on which you can perform some kind of validations. 2. View Model simply provide a data to UI end taken data from UI
-
Model: 1. In Model class we actual implemented bussiness rules. In short the brain of the application should present in this class. 2. In Model class we generally performed the actual logic
Communication Diagram