MCPcopy Create free account
hub / github.com/angular/angular / ClassWithNextState

Class ClassWithNextState

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

Source from the content-addressed store, hash-verified

1358 let log: string[];
1359
1360 class ClassWithNextState {
1361 canDeactivate(
1362 component: TeamCmp,
1363 currentRoute: ActivatedRouteSnapshot,
1364 currentState: RouterStateSnapshot,
1365 nextState: RouterStateSnapshot,
1366 ): boolean {
1367 log.push(currentState.url, nextState.url);
1368 return true;
1369 }
1370 }
1371
1372 beforeEach(() => {
1373 log = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected