javascript - 未知提供者 : $animateCssProvider <- $animateCss <- $uibModalStack <- $uibModal

标签 javascript angularjs angular-ui-bootstrap angular-bootstrap

如果我将我的 Angular 版本更新到更高版本,我相信它会工作,但我更依赖 1.3.20 版本的 Angular。

我尝试了从 1.1latestangular-bootstrap 版本,1.3.20 没有任何效果.我得到的只是未知的提供者。

http://plnkr.co/edit/8TynLlehbEoJF4HY9o0S?p=preview

当您注释第 9 行并取消注释第 10 行时,此 plunkr 代码有效。

但是当 1.3.20 的 ngAnimate 和 Angular 版本与 angular-bootstrap 版本 0.14.3 这是非常旧的代码时,它工作得很好。

如何在不升级 Angular 版本的情况下解决这个问题?

如果我可以显式添加 $animateCss 提供程序,它是否有效?但我怀疑它是否会影响任何其他代码。

我不想使用 angular-bootstrap 的 0.14.3,因为它已经过时了。

最佳答案

来自 Angular Bootstrap 的文档:

UI Bootstrap 1.0 and higher requires Angular 1.4.x or higher and it has been tested with Angular 1.4.8

UI Bootstrap 0.14.3 is the last version that supports Angular 1.3.x

您必须降级或升级其中之一。您别无选择。

关于javascript - 未知提供者 : $animateCssProvider <- $animateCss <- $uibModalStack <- $uibModal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40757659/

相关文章:

javascript - 使用 Protractor 获取 ng-repeat 内部的元素

javascript - Bootstrap 4 下拉配置文件

javascript - Selectpicker 导致 Jquery .on ('change' )触发两次

javascript - 没有应用程序 ID 的共享按钮

javascript - Angular 误差我不明白?

angularjs - 在模态和 Controller 之间传递数据

javascript - AngularJS 和 Angular 工厂

angularjs - 收到错误 : Unexpected field when trying to upload multiple files

javascript - 长数组列表渲染使 Angular.js 中的页面滚动变慢

html - Accordion header 中的 href 不起作用