Soenneker.Blazor.Navigation
1.0.5
Prefix Reserved
Suggested Alternatives
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Blazor.Navigation --version 1.0.5
NuGet\Install-Package Soenneker.Blazor.Navigation -Version 1.0.5
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.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Blazor.Navigation --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Blazor.Navigation, 1.0.5"
#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.
// Install Soenneker.Blazor.Navigation as a Cake Addin #addin nuget:?package=Soenneker.Blazor.Navigation&version=1.0.5 // Install Soenneker.Blazor.Navigation as a Cake Tool #tool nuget:?package=Soenneker.Blazor.Navigation&version=1.0.5
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. |
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.2)
- Microsoft.AspNetCore.Components.Web (>= 7.0.2)
- Microsoft.AspNetCore.Components.WebAssembly.Authentication (>= 7.0.2)
- 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 | |
---|---|---|---|
1.0.46 | 222 | 11/16/2023 | |
1.0.45 | 159 | 10/24/2023 | |
1.0.44 | 148 | 10/24/2023 | |
1.0.43 | 144 | 10/24/2023 | |
1.0.42 | 134 | 10/10/2023 | |
1.0.41 | 132 | 10/10/2023 | |
1.0.40 | 134 | 10/10/2023 | |
1.0.39 | 153 | 9/12/2023 | |
1.0.38 | 132 | 9/12/2023 | |
1.0.37 | 144 | 9/12/2023 | |
1.0.36 | 203 | 8/8/2023 | |
1.0.35 | 185 | 8/8/2023 | |
1.0.34 | 189 | 8/8/2023 | |
1.0.33 | 191 | 7/11/2023 | |
1.0.32 | 174 | 7/11/2023 | |
1.0.31 | 183 | 7/11/2023 | |
1.0.30 | 171 | 6/23/2023 | |
1.0.29 | 163 | 6/23/2023 | |
1.0.28 | 167 | 6/23/2023 | |
1.0.27 | 172 | 6/13/2023 | |
1.0.26 | 177 | 6/13/2023 | |
1.0.25 | 171 | 6/13/2023 | |
1.0.23 | 367 | 4/11/2023 | |
1.0.22 | 250 | 4/11/2023 | |
1.0.21 | 274 | 4/11/2023 | |
1.0.20 | 263 | 4/11/2023 | |
1.0.19 | 279 | 4/3/2023 | |
1.0.18 | 307 | 3/23/2023 | |
1.0.17 | 323 | 3/18/2023 | |
1.0.11 | 315 | 3/18/2023 | |
1.0.10 | 287 | 3/18/2023 | |
1.0.7 | 308 | 3/18/2023 | |
1.0.6 | 294 | 3/18/2023 | |
1.0.5 | 467 | 1/17/2023 | |
1.0.4 | 371 | 1/14/2023 | |
1.0.3 | 372 | 1/14/2023 | |
1.0.2 | 340 | 1/13/2023 | |
1.0.1 | 356 | 1/13/2023 |