Template-Var update

I am very busy improving the ethereum platform API and therefore i’m not writing to much updates here.

One improvement i did to a package of mine today i want to share, though.

Template-Var the package, which allows you to set template specific reactive variables has now two new methods:

  • TemplateVar.getFrom(selector, propertyName) – which allows you to get receive vars from other templates by simply passing a selector of one of its elements.
  • TemplateVat.setTo(selector, propertyName, value) – which does the same for setting reactive vars to other templates.

Inside this other templates instances you can still use TemplateVar.set()/.get to alter the reactive variables as well.

Hope you like and use it 😉