加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – angular-ui:使用popover-template

发布时间:2020-12-17 17:59:53 所属栏目:安全 来源:网络整理
导读:我发布了一个早先的问题: angular-ui-bootstrap: Implementing html in popover using popover-html,有人建议我使用popover-template. i popover-template="popover-partial.html" popover-title="In Progress" class="glyphicon glyphicon-info-sign"/iscr
我发布了一个早先的问题: angular-ui-bootstrap: Implementing html in popover using popover-html,有人建议我使用popover-template.

<i popover-template="popover-partial.html" popover-title="In Progress" class="glyphicon glyphicon-info-sign"></i>

<script type="text/ng-template" id="popover-partial.html">
    <b>Jody</b>
</script>

所以我试图这样做,但现在弹出窗口不会在点击时激活.

我使用的是版本0.13.4.

解决方法

popover-template值应该是string,换句话说你可以这么说,它需要一个表达式/ scopeVariable.

<i popover-template="'popover-partial.html'" 
  popover-title="In Progress" 
  class="glyphicon glyphicon-info-sign">
</i>

Demo

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读