MCPcopy
hub / github.com/angular/angular / createLoggerGuard

Function createLoggerGuard

packages/router/test/router.spec.ts:140–145  ·  view source on GitHub ↗
(token: string, returnValue = true as boolean | UrlTree)

Source from the content-addressed store, hash-verified

138 let logger: Logger;
139
140 function createLoggerGuard(token: string, returnValue = true as boolean | UrlTree) {
141 return () => {
142 inject(Logger).add(token);
143 return returnValue;
144 };
145 }
146 let events: any[];
147
148 const CA_CHILD = createLoggerGuard('canActivate_child');

Callers 1

router.spec.tsFile · 0.85

Calls 2

injectFunction · 0.90
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…