foundation-utils.routeutil
Home > @genesislcap/foundation-utils > RouteUtil
RouteUtil class
A singleton utility to observe and notify about route changes. It uses both polling and popstate events to detect changes.
Signature:
export declare class RouteUtil
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
The current pathname of the window location. | ||
|
|
Gets the singleton instance of RouteUtil. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Clean up route detection listeners and polling. |