MCPcopy Create free account
hub / github.com/angular/angular / canLoadFails

Function canLoadFails

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

Source from the content-addressed store, hash-verified

30}
31
32export function canLoadFails(route: Route): never {
33 throw navigationCancelingError(
34 (typeof ngDevMode === 'undefined' || ngDevMode) &&
35 `Cannot load children because the guard of the route "path: '${route.path}'" returned false`,
36 NavigationCancellationCode.GuardRejected,
37 );
38}
39
40export class ApplyRedirects {
41 constructor(

Callers 1

getChildConfigMethod · 0.90

Calls 1

navigationCancelingErrorFunction · 0.90

Tested by

no test coverage detected