MCPcopy
hub / github.com/angular/angular / createState

Function createState

packages/router/test/create_router_state.spec.ts:233–245  ·  view source on GitHub ↗
(config: Routes, url: string)

Source from the content-addressed store, hash-verified

231}
232
233async function createState(config: Routes, url: string): Promise<RouterStateSnapshot> {
234 const result = await recognize(
235 TestBed.inject(EnvironmentInjector),
236 TestBed.inject(RouterConfigLoader),
237 RootComponent,
238 config,
239 tree(url),
240 new DefaultUrlSerializer(),
241 DEFAULT_PARAMS_INHERITANCE_STRATEGY,
242 new AbortController().signal,
243 );
244 return result.state;
245}
246
247function checkActivatedRoute(
248 actual: ActivatedRoute,

Callers 1

Calls 3

recognizeFunction · 0.90
treeFunction · 0.70
injectMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…