Is there a way in Polymer 1.0 to set up a binding using javascript like Node.bind()
did previously?
[Ignore this: Apparently being succinct is not allowed in stackoverflow so I have to write this useless sentence in order to post the question.]
Is there a way in Polymer 1.0 to set up a binding using javascript like Node.bind()
did previously?
[Ignore this: Apparently being succinct is not allowed in stackoverflow so I have to write this useless sentence in order to post the question.]
Short answer is: NO. Polymer 1.0 currently does not support imperative data-binding.
In 1.0, the data-binding mechanism was completely rewrote, so previous 0.5-ish techniques like
Node.bind('content', new PathObserver(obj, 'path.to.value'));
oror
html-echo
does not work.More info in this SO question: Binding imperatively
More info in Github: https://github.com/Polymer/polymer/issues/1778