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

Function isClientRenderModeEnabled

packages/core/src/hydration/api.ts:175–180  ·  view source on GitHub ↗

* Checks whether the `RenderMode.Client` was defined for the current route.

(doc: Document)

Source from the content-addressed store, hash-verified

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

Callers 1

withDomHydrationFunction · 0.85

Calls 1

hasAttributeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…