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