What role does MVVM play in ASP.NET MVC 4 web applications?

前端 未结 5 1011
心在旅途
心在旅途 2021-02-14 03:17

While I\'m reading the book \"ASP.NET MVC 4\" I\'m wondering about MVVM. I started googling and cannot find any books about developing web applications using MVVM, so I must be

5条回答
  •  花落未央
    2021-02-14 04:04

    MVC is a one-way data-binding system.

    Fill your Model in Controller, then pass it to View.


    MVVM is a two-way data-binding one.

    Fill your Model, use it in View, when the View state's changes, your Model update automatically.(Vice-versa)

提交回复
热议问题