Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

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.