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

Function canLoadFails

packages/router/src/apply_redirects.ts:53–59  ·  view source on GitHub ↗
(route: Route)

Source from the content-addressed store, hash-verified

51}
52
53export function canLoadFails(route: Route): never {
54 throw navigationCancelingError(
55 (typeof ngDevMode === 'undefined' || ngDevMode) &&
56 `Cannot load children because the guard of the route "path: '${route.path}'" returned false`,
57 NavigationCancellationCode.GuardRejected,
58 );
59}
60
61export class ApplyRedirects {
62 constructor(

Callers 1

getChildConfigMethod · 0.90

Calls 1

navigationCancelingErrorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…