mvvm: i.e., Model-View-ViewModel (Model - View - view model) shorthand.
Model (Model): a rear end of the data transfer
View (View): namely the front page rendering
View model: the core mvvm, it is the bridge between the view and model. By two-way data binding implementation .
Direction 1: The data binding the model into view
Direction 2: DOM event listener , to convert the model view (i.e., the rear end of the data needed to pass)
mvc: i.e., Model-View- Controller (Model - View - Controller) shorthand
Model (Model): Data Model
View (View): rendering of the front page
Controller (Controller): Yewuluojiceng
Difference: MVC and MVVM not completely replaced the C VM, but weakened the cover curtain C, the presence of business logic ViewModel purposes of illustration in the Controller pulled, rather than replace Controller, etc., or other view operations service should be placed Controller implemented. That MVVM achieved is to reuse the business logic components, so that the development of more efficient, more clearly the structure, increasing the reusability of code.
Mo excuses for failure, only to find reasons for success.