navigateTo()
The navigateTo()
function enables you to navigate between the internal pages of the App or to an external URL.
Signature
navigateTo(pageName: string, params?: {}, target: "SAME_WINDOW" | "NEW_WINDOW"): Promise
Parameters
pageNameOrUrl
Page name or URL to which you would like to be transported. PageName
is case-sensitive.
params
Query parameters passed via the URL. Used to share information with the destination page. To bind an object with key-value pairs into a query parameter, use the following syntax in Query params:
{{
{ "key": "value" }
}}
target
Option to configure whether to open the page or URL in the same browser window or a new window/tab. The default value is set to SAME_WINDOW
.