Skip to main content

View Components

  • Chapter
  • First Online:
Pro ASP.NET Core MVC 2
  • 5276 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Adam Freeman

About this chapter

Cite this chapter

Freeman, A. (2017). View Components. In: Pro ASP.NET Core MVC 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3150-0_22

Download citation

Publish with us

Policies and ethics