(lContainer: LContainer)
| 88 | * cleanup function for each one. |
| 89 | */ |
| 90 | export function cleanupLContainer(lContainer: LContainer) { |
| 91 | removeDehydratedViews(lContainer); |
| 92 | |
| 93 | // The host could be an LView if this container is on a component node. |
| 94 | // In this case, descend into host LView for further cleanup. See also |
| 95 | // LContainer[HOST] docs for additional information. |
| 96 | const hostLView = lContainer[HOST]; |
| 97 | if (isLView(hostLView)) { |
| 98 | cleanupLView(hostLView); |
| 99 | } |
| 100 | |
| 101 | for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) { |
| 102 | cleanupLView(lContainer[i] as LView); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Walks over `LContainer`s and components registered within |
no test coverage detected
searching dependent graphs…