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

Function canActivateTeam

packages/examples/router/route_functional_guards.ts:49–54  ·  view source on GitHub ↗
(
  route: ActivatedRouteSnapshot,
  state: RouterStateSnapshot,
)

Source from the content-addressed store, hash-verified

47}
48
49const canActivateTeam: CanActivateFn = (
50 route: ActivatedRouteSnapshot,
51 state: RouterStateSnapshot,
52) => {
53 return inject(PermissionsService).canActivate(inject(UserToken), route.params['id']);
54};
55// #enddocregion
56
57// #docregion CanActivateFnInRoute

Callers

nothing calls this directly

Calls 2

injectFunction · 0.90
canActivateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…