( providers: Array<Type<CanActivateChild>>, )
| 64 | * @see {@link Route} |
| 65 | */ |
| 66 | export function mapToCanActivateChild( |
| 67 | providers: Array<Type<CanActivateChild>>, |
| 68 | ): CanActivateChildFn[] { |
| 69 | return providers.map( |
| 70 | (provider) => |
| 71 | (...params) => |
| 72 | inject(provider).canActivateChild(...params), |
| 73 | ); |
| 74 | } |
| 75 | /** |
| 76 | * Maps an array of injectable classes with canDeactivate functions to an array of equivalent |
| 77 | * `CanDeactivateFn` for use in a `Route` definition. |
nothing calls this directly
no test coverage detected
searching dependent graphs…