Front-end MVVM is a software architecture design pattern. It is essentially an improved version of MVC, which abstracts the state and behavior of the View and allows developers to separate the view UI and business logic. This pattern The advantages are low coupling, reusability, independent development and testability.
MVVM is the abbreviation of Model-View-ViewModel. It is essentially an improved version of MVC. MVVM abstracts the state and behavior of the View, allowing us to separate the view UI and business logic. Of course, ViewModel has already done these things for us. It can take out the Model data and help handle the business logic involved in the View that needs to display content. Microsoft's WPF brings new technical experiences, such as Silverlight, audio, video, 3D, animation..., which results in the software UI layer being more detailed and customizable. At the same time, at the technical level, WPF also brings new features such as Binding, Dependency Property, Routed Events, Command, DataTemplate, ControlTemplate and so on. The origin of the MVVM (Model-View-ViewModel) framework is a new architectural framework that evolved from the application method of combining the MVP (Model-View-Presenter) pattern with WPF. It is based on the original MVP framework and incorporates the new features of WPF to cope with increasingly complex changes in customer needs.
MVVM logic diagram
##Components of the MVVM pattern
JS Tutorial"
The above is the detailed content of What is front-end MVVM?. For more information, please follow other related articles on the PHP Chinese website!