W3cubDocs

/Angular

CanLoadFn

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

Deprecation warning

Use Route.canMatch and CanMatchFn instead

API

type CanLoadFn = (route: Route, segments: UrlSegment[]) => MaybeAsync<GuardResult>

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/CanLoadFn