Skip to content

ui-router-navigation-location-plugin / NavigationLocationService

Class: NavigationLocationService

Defined in: index.ts:48

Location service implementation using the Navigation API.

Uses the browser's Navigation API for URL management instead of the History API, providing better integration with browser navigation and enabling interception of navigation events.

See

https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API

Extends

Constructors

Constructor

ts
new NavigationLocationService(router?): NavigationLocationService;

Defined in: index.ts:58

Creates a new NavigationLocationService instance.

Parameters

ParameterTypeDescription
router?UIRouterThe UIRouter instance (required despite optional type signature)

Returns

NavigationLocationService

Throws

Error if router is not provided

Overrides

ts
BaseLocationServices.constructor;

Properties

PropertyTypeDefined in
_configLocationConfigindex.ts:49

Methods

dispose()

ts
dispose(router): void;

Defined in: index.ts:145

Cleans up the location service by removing the navigation event listener.

Parameters

ParameterTypeDescription
routerUIRouterThe UIRouter instance

Returns

void

Overrides

ts
BaseLocationServices.dispose;