diff --git a/aspnetcore/blazor/components/quickgrid.md b/aspnetcore/blazor/components/quickgrid.md index 4db05296429e..ba5a5d97e45a 100644 --- a/aspnetcore/blazor/components/quickgrid.md +++ b/aspnetcore/blazor/components/quickgrid.md @@ -313,7 +313,7 @@ The conve ```razor @page "/food-recalls" @inject HttpClient Http -@inject NavigationManager NavManager +@inject NavigationManager Navigation Food Recalls @@ -332,14 +332,14 @@ The conve

Total: @numResults results found

@code { - GridItemsProvider? foodRecallProvider; - int numResults; + private GridItemsProvider? foodRecallProvider; + private int numResults; protected override async Task OnInitializedAsync() { foodRecallProvider = async req => { - var url = NavManager.GetUriWithQueryParameters( + var url = Navigation.GetUriWithQueryParameters( "https://api.fda.gov/food/enforcement.json", new Dictionary { diff --git a/aspnetcore/blazor/components/render-modes.md b/aspnetcore/blazor/components/render-modes.md index 27edc9d1f35a..8b47449b0dbb 100644 --- a/aspnetcore/blazor/components/render-modes.md +++ b/aspnetcore/blazor/components/render-modes.md @@ -688,7 +688,7 @@ The `Shared` folder maintains the `AccountLayout` layout component. The componen ```razor @inherits LayoutComponentBase @layout BlazorSample.Components.Layout.MainLayout -@inject NavigationManager NavigationManager +@inject NavigationManager Navigation @if (HttpContext is null) { @@ -707,7 +707,7 @@ else { if (HttpContext is null) { - NavigationManager.Refresh(forceReload: true); + Navigation.Refresh(forceReload: true); } } } @@ -756,7 +756,7 @@ The app has a custom layout that can be applied to components around the app. Us ```razor @inherits LayoutComponentBase @layout MainLayout -@inject NavigationManager NavigationManager +@inject NavigationManager Navigation @if (HttpContext is null) { @@ -775,7 +775,7 @@ else { if (HttpContext is null) { - NavigationManager.Refresh(forceReload: true); + Navigation.Refresh(forceReload: true); } } }