Class: BrowserNavigationDelegate

BrowserNavigationDelegate()

Browser navigation delegate interacting with window, location, document.title, and hashchange/click events.

Constructor

new BrowserNavigationDelegate()

Creates an instance of BrowserNavigationDelegate.

Source:

Extends

Classes

BrowserNavigationDelegate

Methods

back()

Navigates backward in history.

Overrides:
Source:

destroy()

Destroys the delegate and cleans up event listeners.

Overrides:
Source:

forward()

Navigates forward in history.

Overrides:
Source:

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

Returns all active router instances.

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

getHash() → {string}

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

Overrides:
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).

Overrides:
Source:

onHashChange() → {function}

Subscribes to location/hash change events.

Overrides:
Source:
Returns:

Unsubscribe function.

Type
function

onLinkClick() → {function}

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

Overrides:
Source:
Returns:

Unsubscribe function.

Type
function

registerRouter()

Registers a router instance for active router tracking.

Overrides:
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.

Overrides:
Source:

setTitle()

Sets the document or in-memory title.

Overrides:
Source:

unregisterRouter()

Unregisters a router instance.

Overrides:
Source: