MCPcopy Index your code
hub / github.com/angular/angular / isCanLoad

Function isCanLoad

packages/router/src/utils/type_guards.ts:34–36  ·  view source on GitHub ↗
(guard: any)

Source from the content-addressed store, hash-verified

32}
33
34export function isCanLoad(guard: any): guard is {canLoad: CanLoadFn} {
35 return guard && isFunction<CanLoadFn>(guard.canLoad);
36}
37
38export function isCanActivate(guard: any): guard is {canActivate: CanActivateFn} {
39 return guard && isFunction<CanActivateFn>(guard.canActivate);

Callers 1

runCanLoadGuardsFunction · 0.90

Calls 1

isFunctionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…