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

Class PermissionsService

packages/examples/router/route_functional_guards.ts:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37class UserToken {}
38
39@Injectable()
40class PermissionsService {
41 canActivate(currentUser: UserToken, userId: string): boolean {
42 return true;
43 }
44 canMatch(currentUser: UserToken): boolean {
45 return true;
46 }
47}
48
49const canActivateTeam: CanActivateFn = (
50 route: ActivatedRouteSnapshot,

Callers

nothing calls this directly

Calls 1

InjectableInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…