* Checks whether the `RenderMode.Client` was defined for the current route.
(doc: Document)
| 175 | * Checks whether the `RenderMode.Client` was defined for the current route. |
| 176 | */ |
| 177 | function isClientRenderModeEnabled(doc: Document): boolean { |
| 178 | return ( |
| 179 | (typeof ngServerMode === 'undefined' || !ngServerMode) && |
| 180 | doc.body.hasAttribute(CLIENT_RENDER_MODE_FLAG) |
| 181 | ); |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Returns a set of providers required to setup hydration support |
no test coverage detected