Skip to content

Commit a957fe4

Browse files
authored
NavigationManger naming (#33983)
1 parent 8b73f0a commit a957fe4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

aspnetcore/blazor/components/quickgrid.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
313313
```razor
314314
@page "/food-recalls"
315315
@inject HttpClient Http
316-
@inject NavigationManager NavManager
316+
@inject NavigationManager Navigation
317317
318318
<PageTitle>Food Recalls</PageTitle>
319319
@@ -332,14 +332,14 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
332332
<p>Total: <strong>@numResults results found</strong></p>
333333
334334
@code {
335-
GridItemsProvider<FoodRecall>? foodRecallProvider;
336-
int numResults;
335+
private GridItemsProvider<FoodRecall>? foodRecallProvider;
336+
private int numResults;
337337
338338
protected override async Task OnInitializedAsync()
339339
{
340340
foodRecallProvider = async req =>
341341
{
342-
var url = NavManager.GetUriWithQueryParameters(
342+
var url = Navigation.GetUriWithQueryParameters(
343343
"https://api.fda.gov/food/enforcement.json",
344344
new Dictionary<string, object?>
345345
{

aspnetcore/blazor/components/render-modes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ The `Shared` folder maintains the `AccountLayout` layout component. The componen
688688
```razor
689689
@inherits LayoutComponentBase
690690
@layout BlazorSample.Components.Layout.MainLayout
691-
@inject NavigationManager NavigationManager
691+
@inject NavigationManager Navigation
692692
693693
@if (HttpContext is null)
694694
{
@@ -707,7 +707,7 @@ else
707707
{
708708
if (HttpContext is null)
709709
{
710-
NavigationManager.Refresh(forceReload: true);
710+
Navigation.Refresh(forceReload: true);
711711
}
712712
}
713713
}
@@ -756,7 +756,7 @@ The app has a custom layout that can be applied to components around the app. Us
756756
```razor
757757
@inherits LayoutComponentBase
758758
@layout MainLayout
759-
@inject NavigationManager NavigationManager
759+
@inject NavigationManager Navigation
760760
761761
@if (HttpContext is null)
762762
{
@@ -775,7 +775,7 @@ else
775775
{
776776
if (HttpContext is null)
777777
{
778-
NavigationManager.Refresh(forceReload: true);
778+
Navigation.Refresh(forceReload: true);
779779
}
780780
}
781781
}

0 commit comments

Comments
 (0)