0

我已经在我的 web-app 项目中添加了 angular-strap popover,所有功能在 chrome 中运行良好,但是当我在 IE8 中打开我的网站时,popover 功能失败了。

我可以确保angular-strap popover可以在IE8中工作,因为我在ie8中打开angular-strap官网(http://mgcrea.github.io/angular-strap/),popover功能运行良好。

我不知道我的代码有什么问题。

<a href="#" data-placement="bottom" data-template="add-resource.tpl.html"
  bs-popover="agentItem">Specify a resource</a>
    <script type="text/ng-template" id="add-resource.tpl.html">
          <div class="popover">
            <div class="arrow"></div>   
            <span class="annotation">(seprate multipile resources with commas)</span>
            <div>
                <input type="text" ng-model="newResources" class="popover-input">
            </div>
            <div>
                <button class="popover-btn" ng-click="addResource(newResources,agentItem);newResources='';$hide()">Add
                    Resource</button>
                <button class="popover-btn" ng-click="$hide()">Close</button>
            </div>
          </div>
        </script>
        <script src="lib/jquery/jquery.js"></script>
        <script src="lib/angular/angular.min.js"></script>
        <script src="lib/angular/angular-animate.js"></script>
        <script src="lib/angular/angular-sanitize.js"></script>
        <script src="lib/angular-strap/angular-strap.js"></script>
        <script src="lib/angular-strap/angular-strap.tpl.js"></script>
        <script src="lib/angular-bootstrap/ui-bootstrap-tpls-0.10.0.js"></script>
        <script src="js/app.js"></script>

我使用缓存的模板 ID作为我的模板。我不确定这是否导致了我的问题。

有没有人知道如何使 Angular-strap 在 IE8 中工作?

4

0 回答 0