Skip to Content
Pro ASP.NET Core MVC 2
book

Pro ASP.NET Core MVC 2

by Adam Freeman
October 2017
Intermediate to advanced content levelIntermediate to advanced
1024 pages
27h 39m
English
Apress
Content preview from Pro ASP.NET Core MVC 2

© Adam Freeman 2017

Adam Freeman, Pro ASP.NET Core MVC 2, https://doi.org/10.1007/978-1-4842-3150-0_22

22. View Components

Adam Freeman

(1)London, UK

I describe view components in this chapter, which are a new addition in ASP.NET Core MVC and replace the child action feature from previous versions. View components are classes that provide action-style logic to support partial views, which means complex content can be embedded in views while allowing the C# code that supports it to be easily maintained and unit tested. Table 22-1 puts view components in context.

Table 22-1. Putting View Components in Context

Question

Answer

What are they?

View components are classes that provide application logic to support partial views or to inject small fragments ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro Entity Framework Core 2 for ASP.NET Core MVC

Pro Entity Framework Core 2 for ASP.NET Core MVC

Adam Freeman

Publisher Resources

ISBN: 9781484231500Purchase bookPublisher Website