angular / 16 / extended-diagnostics / ng8108.html

NG8108: ngSkipHydration should be a static attribute

Description

The ngSkipHydration is a special attribute that indicates to Angular that a particular component should be opted-out of hydration. This diagnostic ensures that this attribute ngSkipHydration is set statically and the value is either set to "true" or an empty value.

What should I do instead?

When using the ngSkipHydration, ensure that it's set as a static attribute (i.e. you do not use the Angular template binding syntax).

<my-cmp ngSkipHydration />
<!-- or -->
<my-cmp ngSkipHydration="true" />

See extended diagnostic configuration for more info.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v16.angular.io/extended-diagnostics/NG8108