ng-repeat在ui-popover-html

时间:2018-05-25 13:00:59

标签: angularjs angular-ui-bootstrap

在ui-popover-html中使用ng-repeat时,出现错误 - 令牌'项目'是意外令牌。 代码如下:

<div uib-popover-html="'<span ng-repeat='item in ${this.myList}'>{{item}}</span>'" 
     popover-trigger="'mouseenter'"
     popover-placement="auto bottom-right">
</div>

我不想使用uib-popover-template。需要使用uib-popover-html实现。

0 个答案:

没有答案