( p: ActivatedRouteSnapshot, )
| 56 | } |
| 57 | |
| 58 | export 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 | |
| 66 | export function getTokenOrFunctionIdentity<T>( |
| 67 | tokenOrFunction: Function | ProviderToken<T>, |
no outgoing calls
no test coverage detected
searching dependent graphs…