Contract for router helpers used by Decaf UI components.
- Since:
- 2026-06-19
Members
void
# backToLastPage
Dispatches a ComponentEventNames.BackButtonClickEvent custom event
and then triggers browser back navigation via Angular's Location service.
Navigates back to the previous page.
string
# getCurrentUrl
Returns the current URL path, stripping the leading forward slash. Falls back to the browser's pathname when the Angular Router returns only '/'.
Retrieves the current URL of the application.
string
# getLastUrlSegment
Extracts the final path segment from the current URL. Falls back to the browser's window location when the Angular Router URL is unavailable.
Retrieves the last segment of the current URL.
string
# getPreviousUrl
Extracts the URL of the previous page from the router's navigation history, useful for back navigation and tracking the user's navigation path.
Retrieves the URL of the previous page.
Record.<string, any>
|
undefined
# getQueryParam
Extracts a single query parameter from the current route and returns it as a key-value pair, or undefined if not found.
Retrieves a specific query parameter from the current route.
string
|
undefined
# getQueryParamValue
Extracts only the string value of a single query parameter from the current route, or undefined if not found.
Retrieves the value of a specific query parameter.
boolean
# hasQueryParam
Determines whether a specific query parameter is present in the current route's query parameters.
Checks if a query parameter exists in the current route.
Promise.<boolean>
# navigate
Triggers navigation to the given page using the Ionic NavController, supporting ROOT, FORWARD, and BACK directions.
Navigates to a specified page.
Array
# parseAllQueryParams
Extracts specified query parameters from the current route and returns them as an array of key-value pairs. When no params are provided, all query parameters are extracted.
Parses query parameters from the current route.