(value: T)
| 164 | } |
| 165 | |
| 166 | async function maybeResolveResources<T>(value: T): Promise<T> { |
| 167 | // In JIT mode we usually resolve the resources of components on bootstrap, however |
| 168 | // that won't have happened for lazy-loaded. Attempt to load any pending |
| 169 | // resources again here. |
| 170 | if ((typeof ngJitMode === 'undefined' || ngJitMode) && typeof fetch === 'function') { |
| 171 | try { |
| 172 | await resolveComponentResources(fetch); |
| 173 | } catch (error) { |
| 174 | console.error(error); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | return value; |
| 179 | } |
no test coverage detected
searching dependent graphs…