navigate()
Navigates to the specified path asynchronously.
navigate(
target: StringConvertible,
mode?: NavigationContext.NavigationMode,
): this;
Notes
- The behavior of this method is platform dependent. It uses NavigationContext.navigateAsync() to navigate to the specified path, which may in turn activate or deactivate activities based on registered route patterns.
Parameters
- target — The target location
- mode — The navigation mode, refer to NavigationContext.navigateAsync()
Examples
// In a web application, navigate to the /foo URL
app.navigate("foo");
Related
class AppContext
A singleton class that represents the global application state.
