difference between MVP MVC and MVVM

后端 未结 2 1097
别跟我提以往
别跟我提以往 2021-02-05 12:11

Folks I have gone through many links/blogs. I see most of them not able to clearly communicate in layman language and as well technical difference between MVP, MVVM and MVC. I k

2条回答
  •  忘掉有多难
    2021-02-05 12:54

    In MVC you have Model View Controller linked as a triangle In MVP you have Model View Presenter linked lineary Basically MVC and MVP are very much similar, however it's simplier to work with MVC, even because you already have built in MS plugin to create and separate your M-V-C providing its advantages With MVP your app would look like like a general ASP.NET app , means: no Razor, no .cshtml for the views, etc. and you have to deal with the structure on your own. MVVM is generally used in Silverlight/WPF and for those techs it's the best choice. The idea of MVVM and MVC are pretty much similar. You can also apply MVVM on a client side of your web app if you use knockout.

提交回复
热议问题