Interface

IDecafRouter

IDecafRouter

Contract for router helpers used by Decaf UI components.

Since:
  • 2026-06-19

View Source ui/interfaces/IDecafRouter.ts, line 4

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.

View Source ui/interfaces/IDecafRouter.ts, line 95

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.

View Source ui/interfaces/IDecafRouter.ts, line 73

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.

View Source ui/interfaces/IDecafRouter.ts, line 62

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.

View Source ui/interfaces/IDecafRouter.ts, line 84

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.

View Source ui/interfaces/IDecafRouter.ts, line 38

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.

View Source ui/interfaces/IDecafRouter.ts, line 50

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.

View Source ui/interfaces/IDecafRouter.ts, line 26

Promise.<boolean>

Triggers navigation to the given page using the Ionic NavController, supporting ROOT, FORWARD, and BACK directions.

Navigates to a specified page.

View Source ui/interfaces/IDecafRouter.ts, line 106

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.

View Source ui/interfaces/IDecafRouter.ts, line 14