-
-
Save chidumennamdi/a17e56f9da391f11867dcb19f6069a79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
markForCheck(): void { markParentViewsForCheck(this._view); } | |
| | |
V | |
export function markParentViewsForCheck(view: ViewData) { | |
let currView: ViewData|null = view; | |
while (currView) { | |
if (currView.def.flags & ViewFlags.OnPush) { | |
currView.state |= ViewState.ChecksEnabled; | |
} | |
currView = currView.viewContainerParent || currView.parent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment