【发布时间】:2013-09-12 03:49:31
【问题描述】:
我从所见即所得编辑器的输出中将 html 数据存储在我的数据库中。 html 还存储一些指令的 html。其中之一是 ui-bootstrap 工具提示:
<span tooltip-placement="left" tooltip="On the Left!">Tooltip text here</span>
我可以使用绑定让任何其他 html 元素工作:
<div ng-bind-html-unsafe="html.content"></div>
但是带有指令引用的 html 不与实际指令交互。
如何让指令生效?
我是否必须编译 html 或类似的东西?
【问题讨论】:
标签: javascript angularjs compiler-directives