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

Function cleanupLView

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

Source from the content-addressed store, hash-verified

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