MCPcopy Create free account
hub / github.com/angular/angular / shouldAddViewToDom

Function shouldAddViewToDom

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

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls 1

Tested by

no test coverage detected