MCPcopy Index your code
hub / github.com/angular/angular / createPreMatchRouteSnapshot

Function createPreMatchRouteSnapshot

packages/router/src/utils/config_matching.ts:37–52  ·  view source on GitHub ↗
(
  snapshot: ActivatedRouteSnapshot,
)

Source from the content-addressed store, hash-verified

35};
36
37export function createPreMatchRouteSnapshot(
38 snapshot: ActivatedRouteSnapshot,
39): PartialMatchRouteSnapshot {
40 return {
41 routeConfig: snapshot.routeConfig,
42 url: snapshot.url,
43 params: snapshot.params,
44 queryParams: snapshot.queryParams,
45 fragment: snapshot.fragment,
46 data: snapshot.data,
47 outlet: snapshot.outlet,
48 title: snapshot.title,
49 paramMap: snapshot.paramMap,
50 queryParamMap: snapshot.queryParamMap,
51 };
52}
53
54export function matchWithChecks(
55 segmentGroup: UrlSegmentGroup,

Callers 2

matchWithChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…