Sunday 15 March 2015

polymer - Insert data-bound HTML into standalone auto-binding template -


It is possible that you can override the data bidding default behavior of polymers to avoid HTML using the Injection HTML method.

It's okay for some use cases, but is there any way to prevent HTML just from standalone templates?

For example, type my HTML page & lt; Body & gt; has a template that looks like this; How can I save myHTMLsnippet from avoiding the HTML of the value?

  & lt; Template = "Auto binding" & gt; & Lt; Div & gt; {{MyHTMLsnippet}} & lt; / Div & gt; & Lt; / Template & gt;  

I can get an alternate solution by nesting the element inside the binding template Was there.

  & lt; Template = "Auto binding" & gt; & Lt; Div & gt; & Lt; Template = "juicy-html" content = "{{myHTMLsnippet}}" & gt; & Lt; / Template & gt; & Lt; / Div & gt; & Lt; / Template & gt;  

No comments:

Post a Comment