Soenneker.Blazor.Navigation
1.0.7
Prefix Reserved
Suggested Alternatives
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Soenneker.Blazor.Navigation --version 1.0.7
NuGet\Install-Package Soenneker.Blazor.Navigation -Version 1.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Blazor.Navigation" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Navigation" Version="1.0.7" />
<PackageReference Include="Soenneker.Blazor.Navigation" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Blazor.Navigation --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Blazor.Navigation, 1.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Blazor.Navigation@1.0.7
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Blazor.Navigation&version=1.0.7
#tool nuget:?package=Soenneker.Blazor.Navigation&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Blazor.Navigation
A small Blazor WebAssembly library that features navigate back, login/logout, reload and more
Can work side-by-side existing Blazor NavigationManager usage, and still work with navigate back
Installation
Install-Package Soenneker.Blazor.Navigation
Usage
- Register
INavigationUtil
withinProgram.cs
or wherever your registering your services:
public static async Task Main(string[] args)
{
...
builder.Services.AddNavigation();
}
- Warm it up so it can begin recording navigation history. Call after the
WebAssemblyHost
has been built:
public static async Task Main(string[] args)
{
...
WebAssemblyHost host = builder.Build();
host.Services.WarmupNavigation();
}
- Inject
INavigationUtil
within pages/components where you need to access navigation methods:
@using Soenneker.Blazor.Navigation.Abstract
@inject INavigationUtil NavigationUtil
Navigating back
NavigationUtil.NavigateBack();
Logging in/out
// Pairs nicely with MSAL defaults
NavigationUtil.Logout();
NavigationUtil.Login();
Navigating
// within the SPA client
NavigationUtil.NavigateTo("/users");
// forcing a page load
NavigationUtil.NavigateTo("/users", true);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Microsoft.AspNetCore.Components (>= 7.0.4)
- Microsoft.AspNetCore.Components.Web (>= 7.0.4)
- Microsoft.AspNetCore.Components.WebAssembly.Authentication (>= 7.0.4)
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|