W3cubDocs

/Angular

CanLoadFn

type-alias deprecated

The signature of a function used as a canLoad guard on a Route.

Deprecated: Use Route.canMatch and CanMatchFn instead

type CanLoadFn = (route: Route, segments: UrlSegment[]) => Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;

See also

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/CanLoadFn