Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created May 19, 2018 13:05
Show Gist options
  • Save alexzuza/c4993a7150994bf2129927b2f401aa21 to your computer and use it in GitHub Desktop.
Save alexzuza/c4993a7150994bf2129927b2f401aa21 to your computer and use it in GitHub Desktop.
Ivy mark view dirty
export function markViewDirty(view: LView): void {
let currentView: LView|null = view;
while (currentView.parent != null) {
currentView.flags |= LViewFlags.Dirty;
currentView = currentView.parent;
}
currentView.flags |= LViewFlags.Dirty;
ngDevMode && assertNotNull(currentView !.context, 'rootContext');
scheduleTick(currentView !.context as RootContext);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment