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

Function addViewToDOM

packages/core/src/render3/node_manipulation.ts:211–222  ·  view source on GitHub ↗
(
  tView: TView,
  parentTNode: TNode,
  renderer: Renderer,
  lView: LView,
  parentNativeNode: RElement,
  beforeNode: RNode | null,
)

Source from the content-addressed store, hash-verified

209 * @param beforeNode The node before which elements should be added, if insert mode
210 */
211export function addViewToDOM(
212 tView: TView,
213 parentTNode: TNode,
214 renderer: Renderer,
215 lView: LView,
216 parentNativeNode: RElement,
217 beforeNode: RNode | null,
218): void {
219 lView[HOST] = parentNativeNode;
220 lView[T_HOST] = parentTNode;
221 applyView(tView, lView, renderer, WalkTNodeTreeAction.Insert, parentNativeNode, beforeNode);
222}
223
224/**
225 * Detach a `LView` from the DOM by detaching its nodes.

Callers 1

addLViewToLContainerFunction · 0.90

Calls 1

applyViewFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…