(lView: LView)
| 108 | * this LView and invokes dehydrated views cleanup function for each one. |
| 109 | */ |
| 110 | export 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 |
no test coverage detected
searching dependent graphs…