angular.ui.popover无法使用最新的角度1.3.3和angular.ui.bootstrap 0.12.0

htt*_*ete 5 twitter-bootstrap angularjs angular-ui-bootstrap

我创造了这支笔:

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>
Run Code Online (Sandbox Code Playgroud)

Rob*_*b J 1

我不确定您使用的是什么 angular-ui-bootstrap 库,但弹出窗口中的模板支持不是官方版本的一部分,这里是添加该功能的建议拉取请求的链接。弹出窗口文档未将 popover-template 列为受支持的属性。