File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
aspnetcore/blazor/components Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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{
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{
775775 {
776776 if (HttpContext is null)
777777 {
778- NavigationManager .Refresh(forceReload: true);
778+ Navigation .Refresh(forceReload: true);
779779 }
780780 }
781781}
You can’t perform that action at this time.
0 commit comments