Using dependency injection with view components

added by DotNetKicks
7/20/2016 7:29:27 AM

2 Kicks, 439 Views

On ASP.NET Core view components support dependency injection. We can use some DI/IoC container but we can also go with framework level dependency injection. This blog post explains how dependency injection works with view components and as an example I show you some code I'm using to build top menu for my demo site.


0 comments