• 개요
@angular/router

RedirectFunction

타입 별칭
안정화

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

API

    
      type RedirectFunction = (  redirectData: PartialMatchRouteSnapshot,) => MaybeAsync<string | UrlTree>
    
    

설명

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

The RedirectFunction does not have access to the full ActivatedRouteSnapshot interface because Route matching has not yet completed when the function is called. See PartialMatchRouteSnapshot for more information.

상세 내용으로 이동