This topic shows how to create a view component in ASP.NET MVC 6 and how to inject a service into a view.
Create a new ASP.NET 5 starter project
Add the Todo controller
Install the K Version Manager (KVM)
Run EF migrations
Introducing view components (VCs)
Adding a view component
Injecting a service into a view
Publish to Azure
Introducing view components
New to ASP.NET MVC 6, view components (VCs) are similar to partial views, but they are...