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

Function _locateOrCreateTextNode

packages/core/src/render3/instructions/text.ts:57–65  ·  view source on GitHub ↗
(
  tView: TView,
  lView: LView,
  tNode: TNode,
  value: string,
)

Source from the content-addressed store, hash-verified

55}
56
57let _locateOrCreateTextNode: typeof locateOrCreateTextNodeImpl = (
58 tView: TView,
59 lView: LView,
60 tNode: TNode,
61 value: string,
62) => {
63 lastNodeWasCreated(true);
64 return createTextNode(lView[RENDERER], value);
65};
66
67/**
68 * Enables hydration code path (to lookup existing elements in DOM)

Callers 1

ɵɵtextFunction · 0.85

Calls 2

lastNodeWasCreatedFunction · 0.90
createTextNodeFunction · 0.90

Tested by

no test coverage detected