(tView: TView, lView: LView)
| 234 | * @param lView the `LView` to be detached. |
| 235 | */ |
| 236 | export function detachViewFromDOM(tView: TView, lView: LView) { |
| 237 | // When we remove a view from the DOM, we need to rerun afterRender hooks |
| 238 | // We don't necessarily needs to run change detection. DOM removal only requires |
| 239 | // change detection if animations are enabled (this notification is handled by animations). |
| 240 | lView[ENVIRONMENT].changeDetectionScheduler?.notify(NotificationSource.ViewDetachedFromDOM); |
| 241 | applyView(tView, lView, lView[RENDERER], WalkTNodeTreeAction.Detach, null, null); |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * Traverses down and up the tree of views and containers to remove listeners and |
no test coverage detected