Posts

Showing posts from February, 2022

MVVM - Model View ViewModel

Disadvantages of MVVM: Communication between various MVVM components and data binding can be painful Code reusability of views and view model is difficult. Managing view models and their state in nested views and complex UI’s is difficult MVC vs MVVM MVC architecture has “one to many” relationships between Controller & View MVVM architecture, “one to many” relationships between View & View Model. MVC framework is an architectural pattern that separates an applications into three main logical components Model, View, and Controller. MVVM facilitates a separation of development of the graphical user interface with the help of mark-up language or GUI code In MVC, controller is the entry point to the Application In MVVM, the view is the entry point to the Application. MVP vs MVVM In MVP, the View and Presenter have references to each other (generally through an interface). With MVVM, only the View has a reference to the ViewModel. The ViewModel knows nothing about the View - it simp...