Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@chidumennamdi
Created August 22, 2018 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chidumennamdi/584bdf064993c430bc24b6c7937a53f9 to your computer and use it in GitHub Desktop.
Save chidumennamdi/584bdf064993c430bc24b6c7937a53f9 to your computer and use it in GitHub Desktop.
export function checkAndUpdateDirectiveInline(...): boolean {
const providerData = asProviderData(view, def.nodeIndex);
const directive = providerData.instance;
let changed = false;
let changes: SimpleChanges = undefined !;
const bindLen = def.bindings.length;
if (bindLen > 0 && checkBinding(view, def, 0, v0)) {
changed = true;
changes = updateProp(view, providerData, def, 0, v0, changes);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment