(providers: Array<Type<CanMatch>>)
| 31 | * @see {@link Route} |
| 32 | */ |
| 33 | export function mapToCanMatch(providers: Array<Type<CanMatch>>): CanMatchFn[] { |
| 34 | return providers.map( |
| 35 | (provider) => |
| 36 | (...params) => |
| 37 | inject(provider).canMatch(...params), |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Maps an array of injectable classes with canActivate functions to an array of equivalent |