(declarationContainer: LContainer, lView: LView)
| 294 | } |
| 295 | |
| 296 | export function detachMovedView(declarationContainer: LContainer, lView: LView) { |
| 297 | ngDevMode && assertLContainer(declarationContainer); |
| 298 | ngDevMode && |
| 299 | assertDefined( |
| 300 | declarationContainer[MOVED_VIEWS], |
| 301 | 'A projected view should belong to a non-empty projected views collection', |
| 302 | ); |
| 303 | const movedViews = declarationContainer[MOVED_VIEWS]!; |
| 304 | const declarationViewIndex = movedViews.indexOf(lView); |
| 305 | movedViews.splice(declarationViewIndex, 1); |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * A standalone function which destroys an LView, |
no test coverage detected