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

Function cleanupLView

packages/core/src/hydration/cleanup.ts:110–123  ·  view source on GitHub ↗
(lView: LView)

Source from the content-addressed store, hash-verified

108 * this LView and invokes dehydrated views cleanup function for each one.
109 */
110export function cleanupLView(lView: LView) {
111 cleanupI18nHydrationData(lView);
112
113 const tView = lView[TVIEW];
114 for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {
115 if (isLContainer(lView[i])) {
116 const lContainer = lView[i];
117 cleanupLContainer(lContainer);
118 } else if (isLView(lView[i])) {
119 // This is a component, enter the `cleanupLView` recursively.
120 cleanupLView(lView[i]);
121 }
122 }
123}
124
125/**
126 * Walks over all views registered within the ApplicationRef and removes

Callers 2

cleanupLContainerFunction · 0.85
cleanupDehydratedViewsFunction · 0.85

Calls 4

cleanupI18nHydrationDataFunction · 0.90
isLContainerFunction · 0.90
isLViewFunction · 0.90
cleanupLContainerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…