Created
May 19, 2018 13:05
-
-
Save alexzuza/c4993a7150994bf2129927b2f401aa21 to your computer and use it in GitHub Desktop.
Ivy mark view dirty
This file contains hidden or 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
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