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

Function mapToCanActivateChild

packages/router/src/utils/functional_guards.ts:66–74  ·  view source on GitHub ↗
(
  providers: Array<Type<CanActivateChild>>,
)

Source from the content-addressed store, hash-verified

64 * @see {@link Route}
65 */
66export function mapToCanActivateChild(
67 providers: Array<Type<CanActivateChild>>,
68): CanActivateChildFn[] {
69 return providers.map(
70 (provider) =>
71 (...params) =>
72 inject(provider).canActivateChild(...params),
73 );
74}
75/**
76 * Maps an array of injectable classes with canDeactivate functions to an array of equivalent
77 * `CanDeactivateFn` for use in a `Route` definition.

Callers

nothing calls this directly

Calls 3

injectFunction · 0.90
mapMethod · 0.80
canActivateChildMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…