Why do we need ViewModel?
In Android, UI state get’s destroyed during configuration changes like screen rotation, screen size changes etc. To persist the UI state and to access business logic, we need a plan class named ViewModel able to persist the UI state during configuration changes and...