如果我将我的 Angular 版本更新到更高版本,我相信它会工作,但我更依赖 1.3.20
版本的 Angular。
我尝试了从 1.1
到 latest
的 angular-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/