Reputation: 1314
Polymer provides automatic two-way binding between template and data which is great. It also provides a one time binding. Is there a way to have a one-time binding with a way to refresh it later? I like the expressiveness of the polymer template, but I am not sure about performance of polling. (we have really complicated dom). We are investigating possibility of doing FRP (possibly Bacon.js) in Polymer.
Thanks in advance!
Upvotes: 0
Views: 525
Reputation: 24109
My reaction to questions like this is usually: have you actually observed a performance issues?
Keep in mind, if the browser supports Object.observe()
, there's no polling. If that feature isn't available, Polymer does default to polling in order to flush the data-binding system and propagate changes. That doesn't necessarily mean DOM changes either. Polymer's data binding system makes the minimal amount of DOM changes to reflect model changes. See the section on maintaining instances as well.
Upvotes: 2