@angular/router

RedirectFunction

Type Alias

The type for the function that can be used to handle redirects when the path matches a Route config.

  
    type RedirectFunction = (  redirectData: Pick<    ActivatedRouteSnapshot,    'routeConfig' | 'url' | 'params' | 'queryParams' | 'fragment' | 'data' | 'outlet' | 'title'  >,) => string | UrlTree
  
  
Jump to details