如何从angular-strap-0.7.5升级

时间:2017-07-04 02:56:28

标签: angularjs angular-strap

我使用angular-strap-0.7.5继承了一个项目。

我已将Angular从0.10升级到1.6.4,并解决了大部分问题(很少,顺便说一句)。

然而,bsPopover正在崩溃,这是堆栈跟踪:

angular.js:14525 Error: [$http:badreq] Http request configuration url must be a string or a $sce trusted object.  Received: undefined
http://errors.angularjs.org/1.6.4/$http/badreq?p0=undefined
    at http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:66:12
    at $http (http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:11967:30)
    at Function.$http.(anonymous function) [as get] (http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:12237:18)
    at Object.postLink [as link] (http://localhost.auspost.com.au:4445/lib/js/vendor/angular-strap-0.7.5/angular-strap.js:564:71)
    at http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:1346:18
    at invokeLinkFn (http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:10426:9)
    at nodeLinkFn (http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:9815:11)
    at compositeLinkFn (http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:9055:13)
    at compositeLinkFn (http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:9058:13)
    at nodeLinkFn (http://localhost.auspost.com.au:4445/lib/js/vendor/node_modules/angular/angular.js:9809:11) "
<span class="remove ng-scope" generic-modal="/content/projects/modal/project-delete.html" ng-click="deleteProject=listProject" bs-popover="popover.content" data-placement="left" data-content="Delete this project" data-trigger="hover">"

我尝试升级到这个:http://mgcrea.github.io/angular-strap/

现在我没有得到堆栈跟踪或任何错误,但是popover只显示了深色背景(掩码)并且没有其他任何操作。

有人得到一个简单的答案吗?

0 个答案:

没有答案