Docs (4.0.0)
class NavigationController method

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 as app.navigate() for convenience.

Parameters

Related

  • class NavigationControllerAn object that encapsulates the current location within the application navigation stack, part of the global application context.