How to display html inside template? -


i have polymer-element:

example

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

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -