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

Function mapToCanMatch

packages/router/src/utils/functional_guards.ts:33–39  ·  view source on GitHub ↗
(providers: Array<Type<CanMatch>>)

Source from the content-addressed store, hash-verified

31 * @see {@link Route}
32 */
33export function mapToCanMatch(providers: Array<Type<CanMatch>>): CanMatchFn[] {
34 return providers.map(
35 (provider) =>
36 (...params) =>
37 inject(provider).canMatch(...params),
38 );
39}
40
41/**
42 * Maps an array of injectable classes with canActivate functions to an array of equivalent

Callers

nothing calls this directly

Calls 3

injectFunction · 0.90
mapMethod · 0.80
canMatchMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…