Table of Contents

Class MvvmNavLink<TViewModel>

Namespace
Blazing.Mvvm.Components.Routing
Assembly
Blazing.Mvvm.dll

A Blazor component that renders an anchor tag and automatically toggles its 'active' CSS class based on whether its 'href' matches the current URI. Navigation is performed using the associated ViewModel type.

public sealed class MvvmNavLink<TViewModel> : MvvmNavLinkBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TViewModel : IViewModelBase

Type Parameters

TViewModel

The type of the ViewModel used for navigation. Must implement IViewModelBase.

Inheritance

Implements

Inherited Members

Methods

Resolves the navigation href for the anchor tag using the ViewModel type.

protected override string ResolveHref()

Returns

string

The absolute URI string for navigation.