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

Function markDirtyIfOnPush

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

Source from the content-addressed store, hash-verified

357
358/** If node is an OnPush component, marks its LView dirty. */
359export function markDirtyIfOnPush(lView: LView, viewIndex: number): void {
360 ngDevMode && assertLView(lView);
361 const childComponentLView = getComponentLViewByIndex(viewIndex, lView);
362 if (!(childComponentLView[FLAGS] & LViewFlags.CheckAlways)) {
363 childComponentLView[FLAGS] |= LViewFlags.Dirty;
364 }
365}
366
367function setNgReflectProperty(lView: LView, tNode: TNode, attrName: string, value: any) {
368 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