Update dependency-injection.md

pull/3605/head
Rick Anderson 2017-06-29 15:28:54 -07:00 committed by GitHub
parent 6fc0456276
commit 4cedb9a349
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ uid: mvc/views/dependency-injection
By [Steve Smith](http://ardalis.com) By [Steve Smith](http://ardalis.com)
ASP.NET Core supports [dependency injection](../../fundamentals/dependency-injection.md) into views. This can be useful for view-specific services, such as localization or data required only for populating view elements. You should try to maintain [separation of concerns](http://deviq.com/separation-of-concerns) between your controllers and views. Most of the data your views display should be passed in from the controller. ASP.NET Core supports [dependency injection](xref:fundamentals/dependency-injection) into views. This can be useful for view-specific services, such as localization or data required only for populating view elements. You should try to maintain [separation of concerns](http://deviq.com/separation-of-concerns) between your controllers and views. Most of the data your views display should be passed in from the controller.
[View or download sample code](https://github.com/aspnet/Docs/tree/master/aspnetcore/mvc/views/dependency-injection/sample) [View or download sample code](https://github.com/aspnet/Docs/tree/master/aspnetcore/mvc/views/dependency-injection/sample)