-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: hydrationstate: has PR
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
The ngSkipHydration is a special attribute that instructs Angular that hydration logic should be skipped for a given component, for example:
<cmp ngSkipHydration />
Angular expects this attribute to be known statically (i.e. it can not be a binding) and also it can not have values other than "true" or an empty value. This would be covered in documentation, but it'd be also great to add a template diagnostic to make sure that:
- a node doesn't have the
ngSkipHydrationin bindings - the value of the
ngSkipHydrationis within the allowed range (['true', '' /* empty string */])
The implementation would likely be very similar to the TextAttributeNotBindingSpec check.
Also related PR with a runtime check: #49500.
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: hydrationstate: has PR