How to display html inside template? -
i have polymer-element:
by default templates not allowed insert html.
this sample not working, because it's not allowed insert html. maybe exists way that.
one way through *changed watcher , setting .innerhtml node:
<div id="div"></div> labelchanged: function() { this.$.div.innerhtml = this.label; } then, <template repeat> case, wrap things in custom element follows similar pattern: https://stackoverflow.com/a/22208332.
Comments
Post a Comment