( futureARS: ActivatedRouteSnapshot, futureRSS: RouterStateSnapshot, paramsInheritanceStrategy: 'emptyOnly' | 'always', )
| 77 | } |
| 78 | |
| 79 | function 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 | |
| 101 | function resolveNode( |
| 102 | resolve: ResolveData, |
no test coverage detected
searching dependent graphs…