Constructor
new BrowserNavigationDelegate()
Creates an instance of BrowserNavigationDelegate.
Extends
Classes
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:
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.