(tView: TView, lView: LView)
| 307 | * @param lView The view to be destroyed. |
| 308 | */ |
| 309 | export function destroyLView(tView: TView, lView: LView) { |
| 310 | if (isDestroyed(lView)) { |
| 311 | return; |
| 312 | } |
| 313 | const renderer = lView[RENDERER]; |
| 314 | |
| 315 | if (renderer.destroyNode) { |
| 316 | applyView(tView, lView, renderer, WalkTNodeTreeAction.Destroy, null, null); |
| 317 | } |
| 318 | destroyViewTree(lView); |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Calls onDestroys hooks for all directives and pipes in a given view and then removes all |
no test coverage detected
searching dependent graphs…