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

angularjs – angular.ui.popover不使用最新的角度1.3.3和angula

发布时间:2020-12-17 10:22:29 所属栏目:安全 来源:网络整理
导读:我创造了这支笔: http://codepen.io/anon/pen/vEOKEK 如果我使用角度为1.2.X,它会起作用,但是一旦我进入1.3就会死掉.我需要能够使用popover-template. p button popover-placement="bottom" popover-template="calendar.html" class="btn btn-default"Date
我创造了这支笔:

http://codepen.io/anon/pen/vEOKEK

如果我使用角度为1.2.X,它会起作用,但是一旦我进入1.3就会死掉.我需要能够使用popover-template.

<p>
    <button popover-placement="bottom" popover-template="calendar.html" class="btn btn-default">Date Picker</button>
  </p>

  <script id="calendar.html" type="text/ng-template">
    <div ng-model="date">
      <datepicker show-weeks="false"></datepicker>
    </div>
    <hr />
    <div class="alert alert-success">{{ text }}</div>
  </script>
好的底线是 – 我花了HOURS尝试使用angular.ui.popover来做到这一点,但它并没有设计为允许自定义的html模板.我切换到nsPopover角度,我设置.更灵活,更好的选择. angular.ui中的工具提示/ popover仅适用于最小的用例,非常小的我永远不会看到它.

(编辑:李大同)

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

    推荐文章
      热点阅读