MCPcopy
hub / github.com/angular/angular / canMatchFactory

Function canMatchFactory

packages/router/test/integration/guards.spec.ts:2111–2112  ·  view source on GitHub ↗
(router: Router)

Source from the content-addressed store, hash-verified

2109 it('can return UrlTree from CanMatchFn guard', async () => {
2110 const canMatchTeamSection = new InjectionToken('CanMatchTeamSection');
2111 const canMatchFactory: (router: Router) => CanMatchFn = (router: Router) => () =>
2112 router.createUrlTree(['/team/1']);
2113
2114 TestBed.overrideProvider(canMatchTeamSection, {
2115 useFactory: canMatchFactory,

Callers

nothing calls this directly

Calls 1

createUrlTreeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…