ASP.NET Core MVC View Components

别等时光非礼了梦想. 提交于 2019-12-04 23:07:49

View components are definitively great and it's certainly an improvement. The one big improvement is that you can run asynchronous operations on view components where it wasn't possible with child actions.

More information available here:

For donut caching, there are two separate issues filed that you can comment/track: #1232 and #536

Currently there is available a brand new documentation from Microsoft:


In my opinion ViewComponents are very useful and flexible features. I like them, and I can recommend them.

However not always View Component is "a better alternative to Partial Views" - this will depend on your particular case.

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