Contains methods for advanced navigation.
forward
forward(routeName: string, routeParams: any[] = [], options: any = {})
Navigates to the route with a forward direction.
options
parameter supports NavigationExtras (with queryParams and other options, see https://angular.io/api/router/NavigationExtras ) and AnimationOptions ( { animated?: boolean; animation?: AnimationBuilder; animationDirection?: 'forward' | 'back'; }
)
Example
this.$a.navigation.forward('Screen2', ['param1', 'param2'], {
queryParams: {
p1: "test"
}
});
back
back(routeName?: string, routeParams: any[] = [], options: any = {})
Navigates to the route with a direction.
options
parameter supports NavigationExtras (with queryParams and other options, see https://angular.io/api/router/NavigationExtras ) and AnimationOptions ( { animated?: boolean; animation?: AnimationBuilder; animationDirection?: 'forward' | 'back'; }
)
If the routeName is not specified, then navigate to the previous page.
Example
this.$a.navigation.back('Screen2', ['param1', 'param2'], {
queryParams: {
p1: "test"
}
});
root
root(routeName: string, routeParams: any[] = [], options: any = {})
Navigates to the route with a root direction and set the target page as a root page.
options
parameter supports NavigationExtras (with queryParams and other options, see https://angular.io/api/router/NavigationExtras ) and AnimationOptions ( { animated?: boolean; animation?: AnimationBuilder; animationDirection?: 'forward' | 'back'; }
)
Example
this.$a.navigation.root('Screen2', ['param1', 'param2'], {
queryParams: {
p1: "test"
}
});