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

Class ClassWithNextState

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected