-
-
Save csharpfritz/a2ee02a1b67b77de41c66e6a5be189bb to your computer and use it in GitHub Desktop.
ASP.NET Core Dependency Injection in a Razor template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Microsoft.Extensions.Configuration | |
@inject IConfigurationRoot Config | |
@{ | |
ViewData["Title"] = "Home Page"; | |
var env = Config["ASPNETCORE_Environment"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment