IHasNavigationManagerNavigationManager Property

Dependency injected NavigationManager for navigating to different pages.
Note: in Blazor, navigation is done in a 'fake' manner so the entire page doesn't need to be reloaded.
If you want to make sure the page is reloaded, or if we're going somewhere outside the Blazor context,
ensure you set the parameter 'forceLoad' in method NavigateTo(String, Boolean, Boolean) to true.

Definition

Namespace: MobileTrack.Web.Components.Interfaces
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
NavigationManager NavigationManager { get; set; }

Property Value

NavigationManager

Example

C#
NavigationManager.NavigateTo($"/portal/{CurrentCompany.Id}/help", forceLoad: true);

See Also