MCPcopy Create free account
hub / github.com/angular/angular / readPatchedLView

Function readPatchedLView

packages/core/src/render3/context_discovery.ts:198–204  ·  view source on GitHub ↗
(target: any)

Source from the content-addressed store, hash-verified

196}
197
198export function readPatchedLView<T>(target: any): LView<T> | null {
199 const value = readPatchedData(target);
200 if (value) {
201 return (isLView(value) ? value : value.lView) as LView<T>;
202 }
203 return null;
204}
205
206export function isComponentInstance(instance: any): boolean {
207 return instance && instance.constructor && instance.constructor.ɵcmp;

Callers 4

getClosestComponentNameFunction · 0.90
getRootViewFunction · 0.90
getRootComponentsFunction · 0.90

Calls 2

isLViewFunction · 0.90
readPatchedDataFunction · 0.85

Tested by

no test coverage detected