Router state management
Track current route details and persist per-entry UI state with @aurelia/router.
Current route (ICurrentRoute)
ICurrentRoute)import { ICurrentRoute } from '@aurelia/router';
import { resolve } from '@aurelia/kernel';
export class MyComponent {
public readonly currentRoute = resolve(ICurrentRoute);
}Managed History Entries (AuNavId and ManagedState)
AuNavId and ManagedState)Inspect managed state during navigation
Persist extra metadata in history entries
Preserve Scroll Positions with IStateManager
IStateManagerComponent-level usage
Share scroll persistence across multiple routes
Last updated
Was this helpful?