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

Class ClassWithNextState

packages/router/test/integration/guards.spec.ts:1300–1310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298 let log: string[];
1299
1300 class ClassWithNextState {
1301 canDeactivate(
1302 component: TeamCmp,
1303 currentRoute: ActivatedRouteSnapshot,
1304 currentState: RouterStateSnapshot,
1305 nextState: RouterStateSnapshot,
1306 ): boolean {
1307 log.push(currentState.url, nextState.url);
1308 return true;
1309 }
1310 }
1311
1312 beforeEach(() => {
1313 log = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…