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

Function getCanActivateChild

packages/router/src/utils/preactivation.ts:58–64  ·  view source on GitHub ↗
(
  p: ActivatedRouteSnapshot,
)

Source from the content-addressed store, hash-verified

56}
57
58export function getCanActivateChild(
59 p: ActivatedRouteSnapshot,
60): {node: ActivatedRouteSnapshot; guards: any[]} | null {
61 const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;
62 if (!canActivateChild || canActivateChild.length === 0) return null;
63 return {node: p, guards: canActivateChild};
64}
65
66export function getTokenOrFunctionIdentity<T>(
67 tokenOrFunction: Function | ProviderToken<T>,

Callers 1

runCanActivateChildFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…