Polymer 1.0 Dynamic Template With Dom-repeat
I have a scenario where I would like to create dynamic template elements that will be used with Polymer's dom-repeat. My current prototype is the following (JSbin demo): var domRep
Solution 1:
Binding in dynamically created HTML isn't that easy currently. I think there are plans to support this better eventually.
In the meantime Templatizer should allow to implement such a scenario. I haven't used it myself and haven't found code examples. iron-list and dom-if, dom-bind, dom-repeat seem to make use of it which might work as template for custom implementations.
https://github.com/Polymer/polymer/blob/master/src/lib/template/templatizer.html
This might help http://t-code.pl/blog/2015/08/polymer-templatizer/
Post a Comment for "Polymer 1.0 Dynamic Template With Dom-repeat"