Answer Posted / Sajjan Singh
MVVM (Model-View-ViewModel) and MVC (Model-View-Controller) are software architectural patterns that aim to separate the development of a user interface from the business logic. However, they have some differences:nn1. MVC: In MVC, the Controller handles user input, updates the Model (data), and directs changes to the View. The View presents data to the user. Models contain the application's core data logic.nn2. MVVM: In MVVM, the ViewModel acts as an intermediary between the View and the Model. It transforms complex data from the Model into a format easily understood by the View. This separation allows for better testability and flexibility in updating the UI without directly modifying the Model.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers