Class: NavigationDelegate

NavigationDelegate()

Base abstract class defining the navigation delegate interface. Encapsulates environment-specific URL location management, event listening, and page title operations.

Constructor

Source:

Methods

back()

Navigates backward in history.

Source:

destroy()

Destroys the delegate and cleans up event listeners.

Source:

forward()

Navigates forward in history.

Source:

getActiveRouters() → {Set:.<object:>}

Returns all active router instances.

Source:
Returns:
Type
Set:.<object:>

getHash() → {string}

Gets the current location hash string (e.g. '#/home').

Source:
Returns:
Type
string

go(delta)

Navigates to a specific history position relative to current position.

Parameters:
Name Type Description
delta number

Relative step count in history (e.g. -1 for back, 1 for forward).

Source:

onHashChange() → {function}

Subscribes to location/hash change events.

Source:
Returns:

Unsubscribe function.

Type
function

onLinkClick() → {function}

Subscribes to click events on links (e.g. [data-ax-link]).

Source:
Returns:

Unsubscribe function.

Type
function

registerRouter()

Registers a router instance for active router tracking.

Source:

setHash(hash, optionsopt)

Navigates/sets the current location hash string.

Parameters:
Name Type Attributes Description
hash string

The target hash.

options object <optional>

Navigation options such as replace.

Source:

setTitle()

Sets the document or in-memory title.

Source:

unregisterRouter()

Unregisters a router instance.

Source: