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

Function runResolve

packages/router/src/operators/resolve_data.ts:79–99  ·  view source on GitHub ↗
(
  futureARS: ActivatedRouteSnapshot,
  futureRSS: RouterStateSnapshot,
  paramsInheritanceStrategy: 'emptyOnly' | 'always',
)

Source from the content-addressed store, hash-verified

77}
78
79function runResolve(
80 futureARS: ActivatedRouteSnapshot,
81 futureRSS: RouterStateSnapshot,
82 paramsInheritanceStrategy: 'emptyOnly' | 'always',
83) {
84 const config = futureARS.routeConfig;
85 const resolve = futureARS._resolve;
86 if (config?.title !== undefined && !hasStaticTitle(config)) {
87 resolve[RouteTitleKey] = config.title;
88 }
89 return defer(() => {
90 futureARS.data = getInherited(futureARS, futureARS.parent, paramsInheritanceStrategy).resolve;
91 return resolveNode(resolve, futureARS, futureRSS).pipe(
92 map((resolvedData: any) => {
93 futureARS._resolvedData = resolvedData;
94 futureARS.data = {...futureARS.data, ...resolvedData};
95 return null;
96 }),
97 );
98 });
99}
100
101function resolveNode(
102 resolve: ResolveData,

Callers 1

resolveDataFunction · 0.85

Calls 4

hasStaticTitleFunction · 0.90
getInheritedFunction · 0.90
deferFunction · 0.85
resolveNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…