(rNode: RNode)
| 223 | * @returns an error |
| 224 | */ |
| 225 | export function invalidSkipHydrationHost(rNode: RNode): Error { |
| 226 | const header = |
| 227 | 'The `ngSkipHydration` flag is applied on a node ' + |
| 228 | "that doesn't act as a component host. Hydration can be " + |
| 229 | 'skipped only on per-component basis.\n\n'; |
| 230 | const actual = `${describeDomFromNode(rNode)}\n\n`; |
| 231 | const footer = 'Please move the `ngSkipHydration` attribute to the component host element.\n\n'; |
| 232 | const message = header + actual + footer; |
| 233 | return new RuntimeError(RuntimeErrorCode.INVALID_SKIP_HYDRATION_HOST, message); |
| 234 | } |
| 235 | |
| 236 | // Stringification methods |
| 237 |
no test coverage detected
searching dependent graphs…