(target: any)
| 493 | * @param target DOM element or component instance for which to retrieve the LView. |
| 494 | */ |
| 495 | export function getComponentLView(target: any): LView { |
| 496 | const lContext = getLContext(target)!; |
| 497 | const nodeIndx = lContext.nodeIndex; |
| 498 | const lView = lContext.lView!; |
| 499 | ngDevMode && assertLView(lView); |
| 500 | const componentLView = lView[nodeIndx]; |
| 501 | ngDevMode && assertLView(componentLView); |
| 502 | return componentLView; |
| 503 | } |
| 504 | |
| 505 | /** Asserts that a value is a DOM Element. */ |
| 506 | function assertDomElement(value: any) { |
no test coverage detected
searching dependent graphs…