How to inject HTML into a template with Polymer 1.x?

无人久伴 提交于 2019-12-04 06:49:44

A slightly hack-ish way to bind a node's innerHTML property:

<div inner-h-t-m-l="{{myProp}}"></div>

Polymer infers capitalization from hyphens, translating the following character to uppercase, and when you use equals (=) instead of equals-dollar (=$) Polymer binds to the node's property rather than the attribute.

we are working on Polymer 1.0.x support. Have you checked https://github.com/Juicy/juicy-html/tree/1.0.x ?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!