Update @HostEnvironment to @Env (#32256)
parent
08932fde98
commit
5ac3be65a2
|
@ -186,7 +186,7 @@ Obtain the app's environment in a component by injecting <xref:Microsoft.AspNetC
|
|||
|
||||
<h1>Environment example</h1>
|
||||
|
||||
<p>Environment: @HostEnvironment.Environment</p>
|
||||
<p>Environment: @Env.Environment</p>
|
||||
```
|
||||
|
||||
:::moniker range=">= aspnetcore-8.0"
|
||||
|
|
Loading…
Reference in New Issue