MCPcopy Index your code
hub / github.com/angular/angular / shouldAddViewToDom

Function shouldAddViewToDom

packages/core/src/render3/view_manipulation.ts:80–87  ·  view source on GitHub ↗
(
  tNode: TNode,
  dehydratedView?: DehydratedContainerView | null,
)

Source from the content-addressed store, hash-verified

78 * block (in which case view contents was re-created, thus needing insertion).
79 */
80export function shouldAddViewToDom(
81 tNode: TNode,
82 dehydratedView?: DehydratedContainerView | null,
83): boolean {
84 return (
85 !dehydratedView || dehydratedView.firstChild === null || hasInSkipHydrationBlockFlag(tNode)
86 );
87}

Callers 7

createEmbeddedViewMethod · 0.90
createComponentMethod · 0.90
ɵɵconditionalFunction · 0.90
attachMethod · 0.90
ɵɵrepeaterFunction · 0.90
insertFallbackContentFunction · 0.90
applyDeferBlockStateFunction · 0.90

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…