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+45c8d9adb5970d727cceec44a5ed61aea0016e50
NavigationManager NavigationManager { get; set; }

Property Value

NavigationManager

Example

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

See Also