Skip to content

Instantly share code, notes, and snippets.

@ArtemRomanovsky
Created February 20, 2020 12:00
Show Gist options
  • Select an option

  • Save ArtemRomanovsky/4d83fd5667655d51157e4b531ff0cdd3 to your computer and use it in GitHub Desktop.

Select an option

Save ArtemRomanovsky/4d83fd5667655d51157e4b531ff0cdd3 to your computer and use it in GitHub Desktop.
function (checkAndUpdate, viewData) {
var component = viewData.component;
// here node index is 1 and property is `name`
var currentValue_0 = component.name;
checkAndUpdate(viewData, 1, 0, currentValue_0);
// here node index is 4 and bound property is `age`
var currentValue_1 = component.age;
checkAndUpdate(viewData, 4, 0, currentValue_1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment