Calling view components in ASP.NET Core views may lead to long and ugly code lines containing generic type parameter of view component and anonymous type for InvokeAsync()method parameters. Something my readers have been interested in for a long time is the tag helper syntax for view components.

ASP.NET Core Pager Example

Suppose you have pager implemented as view component and there’s support for multiple views.

Calling view components in ASP.NET Core views may lead to long and ugly code lines containing generic type parameter of view component and anonymous type for InvokeAsync()method parameters. Something my readers have been interested in for a long time is the tag helper syntax for view components.
ASP.NET Core Pager Example
Suppose you have pager implemented as view component and there’s support for multiple views. […]