set()
Sets the current navigation path.
set(path: string): this;
Notes
- This method doesn’t affect the navigation history or platform-specific navigation. To navigate to a new path, use navigateAsync() instead.
Errors
This method throws an error if the path is invalid (i.e. starts or ends with a dot or a slash).
Related
class NavigationContext abstract
An abstract class that encapsulates the current location within the application navigation stack, part of the global application context.
