navigate
Navigates to the specified path asynchronously.
navigate(target: string | LazyString | NavigationTarget | { getNavigationTarget(): NavigationTarget; }, mode?: NavigationController.NavigationMode): this
Notes
- The behavior of this method is platform dependent. It uses NavigationController.navigateAsync() to navigate to the specified path, which may in turn activate or deactivate activities using the Activity.navigationPageId property.
- The target location can be a NavigationTarget instance, an object that provides a navigation target (i.e. an Activity), or a URL-like path (i.e.
pageId/detail...
).
Parameters
- target — The target location
- mode — The navigation mode, refer to NavigationController.navigateAsync()
Example
// In a web application, navigate to the /foo URL
app.navigate("foo");
Related
- class GlobalContextA singleton class that represents the global application state.