Understanding of the idea of MVVM

 

If MVP is a further improvement of MVC, then MVVM is a complete change in thinking. It takes the idea of ​​"two-way binding of data model data" as the core, so there is no connection between the View and the Model, and the interaction is carried out through the ViewModel, and the interaction between the Model and the ViewModel is two-way, so the change of the view's data will be At the same time, modify the data source, and the changes in the data source data will be reflected on the View immediately.

Typical applications in this regard include .NET's WPF, js framework Knockout, AngularJS, etc.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324820277&siteId=291194637