Method Navigate
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Navigate(string, bool, string?, object?, RelativeRoutingType)
No element participates in layout while the Router the nearest RouterProvider(Router, string?) publishes handles the target.
public static ComponentNode Navigate(string to, bool replace = false, string? key = null, object? state = null, RelativeRoutingType relative = RelativeRoutingType.Route)
Parameters
tostringAbsolute and route-relative targets follow UseNavigate().
replaceboolWhen true, replaces the current history entry instead of pushing.
keystringstateobjectStored on the new history entry, as State.
relativeRelativeRoutingTypeHow a relative
toresolves, as Relative.
Returns
Remarks
Redirects on mount and again when to, replace, state or relative changes.