* Outputs a message with hydration stats into a console.
(injector: Injector)
| 126 | * Outputs a message with hydration stats into a console. |
| 127 | */ |
| 128 | function printHydrationStats(injector: Injector) { |
| 129 | const console = injector.get(Console); |
| 130 | const message = |
| 131 | `Angular hydrated ${ngDevMode!.hydratedComponents} component(s) ` + |
| 132 | `and ${ngDevMode!.hydratedNodes} node(s), ` + |
| 133 | `${ngDevMode!.componentsSkippedHydration} component(s) were skipped. ` + |
| 134 | (isIncrementalHydrationEnabled(injector) |
| 135 | ? `${ngDevMode!.deferBlocksWithIncrementalHydration} defer block(s) were configured to use incremental hydration. ` |
| 136 | : '') + |
| 137 | `Learn more at ${DOC_PAGE_BASE_URL}/guide/hydration.`; |
| 138 | // tslint:disable-next-line:no-console |
| 139 | console.log(message); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Returns a Promise that is resolved when an application becomes stable. |
no test coverage detected
searching dependent graphs…