-
-
Save chidumennamdi/1cde9dd60b66433c40e8a15e8cb99bed 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
function updateProp( | |
view: ViewData, providerData: ProviderData, def: NodeDef, bindingIdx: number, value: any, | |
changes: SimpleChanges): SimpleChanges { | |
if (def.flags & NodeFlags.Component) { | |
const compView = asElementData(view, def.parent !.nodeIndex).componentView; | |
if (compView.def.flags & ViewFlags.OnPush) { | |
compView.state |= ViewState.ChecksEnabled; | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment