MCPcopy
hub / github.com/angular/angular / markDirtyIfOnPush

Function markDirtyIfOnPush

packages/core/src/render3/instructions/shared.ts:319–325  ·  view source on GitHub ↗
(lView: LView, viewIndex: number)

Source from the content-addressed store, hash-verified

317
318/** If node is an OnPush component, marks its LView dirty. */
319export function markDirtyIfOnPush(lView: LView, viewIndex: number): void {
320 ngDevMode && assertLView(lView);
321 const childComponentLView = getComponentLViewByIndex(viewIndex, lView);
322 if (!(childComponentLView[FLAGS] & LViewFlags.CheckAlways)) {
323 childComponentLView[FLAGS] |= LViewFlags.Dirty;
324 }
325}
326
327function setNgReflectProperty(lView: LView, tNode: TNode, attrName: string, value: any) {
328 const environment = lView[ENVIRONMENT];

Callers 2

ɵɵariaPropertyFunction · 0.90
setPropertyAndInputsFunction · 0.85

Calls 2

assertLViewFunction · 0.90
getComponentLViewByIndexFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…