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