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

Function readPatchedData

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

Source from the content-addressed store, hash-verified

190 * a component, directive or a DOM node).
191 */
192export function readPatchedData(target: any): LView | LContext | null {
193 ngDevMode && assertDefined(target, 'Target expected');
194 const data = target[MONKEY_PATCH_KEY_NAME];
195 return typeof data === 'number' ? getLViewById(data) : data || null;
196}
197
198export function readPatchedLView<T>(target: any): LView<T> | null {
199 const value = readPatchedData(target);

Callers 6

getLContextFunction · 0.85
readPatchedLViewFunction · 0.85

Calls 2

assertDefinedFunction · 0.90
getLViewByIdFunction · 0.90

Tested by

no test coverage detected