我正在尝试使用来自http://getbootstrap.com/javascript/#popovers-examples的代码。
<button type="button" class="btn btn-lg btn-danger"
data-toggle="popover" title="Popover title"
data-content="And here's some amazing content. It's very engaging. Right?">
Click to toggle popover
</button>
但是我无法绑定到属性"data-content",它会给出以下错误信息。
不能绑定到 'content',因为它不是 'span' 的已知属性
这是我的Angular代码
<span data-toggle="popover" class="fa fa-exclamation-circle fa-lg" [data-content]="getTooltipMsg('lastName')"></span>
如何解决这个问题?
data-content
的绑定。这真的是你正在使用的代码吗? - Günter Zöchbauer