Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

What is the advantage of View Components in ASP.NET Core 1.0

$
0
0

i just read the article from this url http://www.dotnetcurry.com/aspnet-mvc/1244/view-components-aspnetmvc-6-aspnet-core for View Components in ASP.NET Core 1.0

they are saying the advantage is

A View Component is similar to partial views but more powerful compared to them. A major functionality of the View Component is that it renders a chunk instead of the whole response. This can be used to render View along with data e.g. Login/Logout Panel across all Views, Navigation Bar, recent updates in data etc. Another big improvement over ChildActions is that View Components allows you to run asynchronous operations on them.

i really do not understand the advantage of View Component. so anyone can explain the advantage of View Components compared with partial view with easy example. thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>