OGE logoOGE

Routed menubar

The menubar takes no @angular/router dependency — no package in the suite does. Bind activeKey one-way from the URL (the matching item renders aria-current="page") and navigate in itemClick. url items stay real links, so middle-click and copy-address keep working; preventDefault hands the primary click to the router.

activeKey aria-current no router dependency

Router-driven menubar

The bar never owns the active state here — it reflects the route and asks the router to change it. Matching is by key, so routes can be reordered without touching the binding.

URL is the source of truth Back/Forward works

Members — deep-linkable: this URL can be bookmarked and shared.