Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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.