navigateAsync
Navigates to the specified location.
navigateAsync(target?: NavigationTarget, mode?: NavigationController.NavigationMode): Promise<void>
Summary
When implemented by a platform-specific (or test) implementation, this method sets the application location to the provided target. Different navigation modes allow for the path to be added to the history stack, to replace the current path if possible, or to navigate back before adding or replacing the path.
Note
This method is used by GlobalContext.navigate(), which is available asapp.navigate()
for convenience.
Parameters
- target — The target location, if any
- mode — The navigation mode, an object of type NavigationController.NavigationMode
Related
- class NavigationControllerAn object that encapsulates the current location within the application navigation stack, part of the global application context.