Skip to content

ui-router-navigation-location-plugin / NavigationLocationPluginOptions

Interface: NavigationLocationPluginOptions ​

Defined in: index.ts:57

Options for navigationLocationPlugin.

Properties ​

PropertyTypeDescriptionDefined in
intercept?(event) => NavigationInterceptOptionsCalled for each navigation the service itself starts, after the router transition has committed. What it returns is handed to event.intercept(): handler decides what navigation.transition.finished waits on and when the browser runs focus reset and scroll restoration, and focusReset and scroll pass through. The router is available as event.info.uiRouter. Absent, the service intercepts with an immediately resolving handler. Example router.plugin(navigationLocationPlugin, { intercept: (event) => ({ async handler() { // view transitions, analytics, progress UI }, }), } satisfies NavigationLocationPluginOptions);index.ts:80