Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions aspnetcore/blazor/components/quickgrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
```razor
@page "/food-recalls"
@inject HttpClient Http
@inject NavigationManager NavManager
@inject NavigationManager Navigation

<PageTitle>Food Recalls</PageTitle>

Expand All @@ -332,14 +332,14 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
<p>Total: <strong>@numResults results found</strong></p>

@code {
GridItemsProvider<FoodRecall>? foodRecallProvider;
int numResults;
private GridItemsProvider<FoodRecall>? 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<string, object?>
{
Expand Down
8 changes: 4 additions & 4 deletions aspnetcore/blazor/components/render-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -707,7 +707,7 @@ else
{
if (HttpContext is null)
{
NavigationManager.Refresh(forceReload: true);
Navigation.Refresh(forceReload: true);
}
}
}
Expand Down Expand Up @@ -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)
{
Expand All @@ -775,7 +775,7 @@ else
{
if (HttpContext is null)
{
NavigationManager.Refresh(forceReload: true);
Navigation.Refresh(forceReload: true);
}
}
}
Expand Down
Loading