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