Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/angular/angular
/ canActivate
Method
canActivate
packages/router/src/models.ts:845–845 ·
view source on GitHub ↗
(route: ActivatedRouteSnapshot, state: RouterStateSnapshot)
Source
from the content-addressed store, hash-verified
843
*/
844
export
interface
CanActivate {
845
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): MaybeAsync<GuardResult>;
846
}
847
848
/**
Callers
6
canActivateTeam
Function · 0.65
canActivateChildExample
Function · 0.65
duplicateInFlightNavigationsIntegrationSuite
Function · 0.65
eagerUrlUpdateStrategyIntegrationSuite
Function · 0.65
mapToCanActivate
Function · 0.65
runCanActivate
Function · 0.65
Implementers
13
PermissionsService
packages/examples/router/route_functio
AdminGuard
packages/examples/router/utils/functio
ThrowingCanActivateGuard
packages/router/test/computed_state_re
MyCanActivateGuard
packages/router/test/computed_state_re
ConfigurableGuard
packages/router/test/standalone.spec.t
Guard
packages/router/test/standalone.spec.t
Redirect
packages/router/test/bootstrap.spec.ts
RedirectingGuard
packages/router/test/integration/dupli
AuthGuard
packages/router/test/integration/eager
DelayedGuard
packages/router/test/integration/eager
CompletesBeforeEmitting
packages/router/test/integration/guard
AlwaysTrue
packages/router/test/integration/guard
Calls
no outgoing calls
Tested by
2
duplicateInFlightNavigationsIntegrationSuite
Function · 0.52
eagerUrlUpdateStrategyIntegrationSuite
Function · 0.52