MCPcopy
hub / github.com/angular/angular / getComponentLView

Function getComponentLView

packages/core/src/render3/util/discovery_utils.ts:495–503  ·  view source on GitHub ↗
(target: any)

Source from the content-addressed store, hash-verified

493 * @param target DOM element or component instance for which to retrieve the LView.
494 */
495export 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. */
506function assertDomElement(value: any) {

Callers 3

i18n_spec.tsFile · 0.90
hmr_spec.tsFile · 0.90

Calls 2

getLContextFunction · 0.90
assertLViewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…