Navigation model
Create a navigation menu using navigation model in Router.
interface INavigationModel {
/**
* Collection of routes.
*/
readonly routes: readonly INavigationRoute[];
/**
* Wait for async route configurations.
*/
resolve(): Promise<void> | void;
}
interface INavigationRoute {
readonly id: string | null;
readonly path: string[];
readonly title: string | ((node: RouteNode) => string | null) | null;
readonly data: Record<string, unknown>;
readonly isActive: boolean;
}Create a navigation menu using a navigation model
Using the isActive property
isActive propertyExcluding routes from the navigation model
Disabling navigation model
Combining ICurrentRoute with the navigation model
ICurrentRoute with the navigation modelLast updated
Was this helpful?