MCPcopy
hub / github.com/angular/angular / recognize

Function recognize

packages/router/src/recognize.ts:46–66  ·  view source on GitHub ↗
(
  injector: EnvironmentInjector,
  configLoader: RouterConfigLoader,
  rootComponentType: Type<any> | null,
  config: Routes,
  urlTree: UrlTree,
  urlSerializer: UrlSerializer,
  paramsInheritanceStrategy: ParamsInheritanceStrategy,
  abortSignal: AbortSignal,
)

Source from the content-addressed store, hash-verified

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

Callers 1

setupNavigationsMethod · 0.90

Calls 1

recognizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…