Aurelia不绑定innerHTML绑定语句 [英] Aurelia not binding innerHTML bind statements
本文介绍了Aurelia不绑定innerHTML绑定语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
鉴于我已经使用innerhtml.bind插入了一些html,但是该html中包含它自己的aurelia'.bind'语句,您如何获得这些内部绑定以被aurelia识别?
Given I have used innerhtml.bind to insert some html but that html includes within it it's own aurelia '.bind' statements how do you get those inner bindings to be recognized by aurelia?
示例
<div innerhtml.bind="myhtml"></div>
其中
var myhtml = "<div click.trigger='console.log(123)'>some text</div>";
推荐答案
查看全文