( injector: EnvironmentInjector, configLoader: RouterConfigLoader, rootComponentType: Type<any> | null, config: Routes, urlTree: UrlTree, urlSerializer: UrlSerializer, paramsInheritanceStrategy: ParamsInheritanceStrategy, abortSignal: AbortSignal, )
| 48 | } |
| 49 | |
| 50 | export async function recognize( |
| 51 | injector: EnvironmentInjector, |
| 52 | configLoader: RouterConfigLoader, |
| 53 | rootComponentType: Type<any> | null, |
| 54 | config: Routes, |
| 55 | urlTree: UrlTree, |
| 56 | urlSerializer: UrlSerializer, |
| 57 | paramsInheritanceStrategy: ParamsInheritanceStrategy, |
| 58 | abortSignal: AbortSignal, |
| 59 | ): Promise<{state: RouterStateSnapshot; tree: UrlTree}> { |
| 60 | return new Recognizer( |
| 61 | injector, |
| 62 | configLoader, |
| 63 | rootComponentType, |
| 64 | config, |
| 65 | urlTree, |
| 66 | paramsInheritanceStrategy, |
| 67 | urlSerializer, |
| 68 | abortSignal, |
| 69 | ).recognize(); |
| 70 | } |
| 71 | |
| 72 | const MAX_ALLOWED_REDIRECTS = 31; |
| 73 |
no test coverage detected