1.MVC is short for model-view-controller. Model-view-controller. Is the earliest architecture models, from the foreground to the background unified call MVC, such as the front View layer (View), the backend database (Model), the user interface will want to get the data to back-end server request, the request will be blocked by routing, routing will call the corresponding controller to deal with at this moment, the controller will get the data. The result is returned to the front end and the page is re-rendered. The direction is one way.
2. With the development of the front end, the visual layer is pulled out again, and a VM is pulled out. The traditional front end will manually render the data to the page, and the MVVM mode does not require the user to receive the dom element of operation. View changes notify the viewModel layer to update the data. The ViewModel is the bridge in our MVVM pattern. Vue framework is a typical MVVM, it serves as a VM layer, we can put the data on a vue directly, we can directly through the vue rendering our view, and we view may also directly to change, when change the vue will monitor the change of the current view, and then write the data back to the data layer, This is a two-way process, so MVVM is a two-way binding process. In VUE, data is responsive. Changes in data drive views, and changes in views also change data. For example, V-Model implements a two-way data binding process.
3.MVVM is responsive, two-way data binding, and a responsive framework of data layer (Model) – View layer (View) – Data View (ViewModel).