MCPcopy Create free account
hub / github.com/angular/angular / createActivatedRouteSnapshot

Function createActivatedRouteSnapshot

packages/router/test/router_state.spec.ts:286–300  ·  view source on GitHub ↗
(cmp: string)

Source from the content-addressed store, hash-verified

284});
285
286function createActivatedRouteSnapshot(cmp: string) {
287 return new (ActivatedRouteSnapshot as any)(
288 [],
289 null,
290 null,
291 null,
292 null,
293 null,
294 cmp,
295 null,
296 null,
297 -1,
298 null!,
299 );
300}
301
302function createActivatedRoute(cmp: string) {
303 return new (ActivatedRoute as any)(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected