RedirectCommand
Class
stable
Can be returned by a Router guard to instruct the Router to redirect rather than continue
processing the path of the in-flight navigation. The redirectTo indicates where the new
navigation should go to and the optional navigationBehaviorOptions can provide more information
about how to perform the navigation.
API
class RedirectCommand { constructor(redirectTo: UrlTree, navigationBehaviorOptions?: NavigationBehaviorOptions | undefined): RedirectCommand;}
constructor
RedirectCommand@returns
RedirectCommand