Docs (4.0.0)

type NavigationMode

Type definition for an object supported by app.navigate() and NavigationController.navigateAsync() that indicates how a new location should be applied.

static

type NavigationMode = {
    back?: boolean;
    replace?: boolean;
}

Notes

  • Set the back property to true to navigate back in history before navigating to the new path.
  • Set the replace property to true to replace the current path if possible; afterwards, going back in history won’t result in the current navigation path, but the one before it.
  • Set both properties to true to navigate back first, and then replace the (previous) navigation path.

Related

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