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
backproperty totrueto navigate back in history before navigating to the new path. - Set the
replaceproperty totrueto 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
trueto 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.
