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

Function _locateOrCreateTextNode

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

Source from the content-addressed store, hash-verified

54}
55
56let _locateOrCreateTextNode: typeof locateOrCreateTextNodeImpl = (
57 tView: TView,
58 lView: LView,
59 tNode: TNode,
60 value: string,
61) => {
62 lastNodeWasCreated(true);
63 return createTextNode(lView[RENDERER], value);
64};
65
66/**
67 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…