Communication between the View and Model in MVC

邮差的信 提交于 2019-12-03 12:45:36

There is more than one answer. Eventually you can do whatever you thing suits your needs. I use a controller + ViewModels to connect to the view. The view never use the model. just what the controller gives him.

There is a nice explanation of all models in steven sandarson book, Page 49 (variation on MVC).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!