简体   繁体   English

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

[英]Unknown provider: $animateCssProvider <- $animateCss <- $uibModalStack <- $uibModal

If I update my angular version to higher version I am sure it will work, but I am more depended on 1.3.20 version of angular. 如果我将我的角度版本更新为更高的版本,我相信它会起作用,但是我更依赖于1.3.20版本的角度。

I tried angular-bootstrap version from 1.1 to the latest , nothing works with the 1.3.20 . 我尝试了从1.1latest版本的angular-bootstrap版本,但1.3.20没有任何作用。 All I get is unknown provider. 我得到的只是未知的提供者。

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

This plunkr code works when you comment line 9 & uncomment line 10. 当您注释第9行和取消注释第10行时,此plunkr代码有效。

But it works nicely when 1.3.20's ngAnimate & angular version with angular-bootstrap version 0.14.3 which is very old code. 但是,当1.3.20的ngAnimate和angular版本与angular-bootstrap版本0.14.3一起使用时(这是非常老的代码),它可以很好地工作。

How can I fix this issue without upgrading angular version? 如何在不升级角度版本的情况下解决此问题?

If I can add $animateCss provider explicitly does it work? 如果我可以显式添加$animateCss提供程序,它可以工作吗? but I doubt does it impact any other code. 但我怀疑它是否会影响其他任何代码。

I don't want to use angular-bootstrap's 0.14.3 since it is outdated. 我不想使用angular-bootstrap的0.14.3,因为它已经过时了。

From the documentation for Angular Bootstrap: 从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 1.0和更高版本需要Angular 1.4.x或更高版本,并且已经在Angular 1.4.8中进行了测试

UI Bootstrap 0.14.3 is the last version that supports Angular 1.3.x UI Bootstrap 0.14.3是支持Angular 1.3.x的最新版本

You must downgrade or upgrade one or the other. 您必须降级或升级另一个。 You have no other option. 您别无选择。

I have updated your code Please Check 我已更新您的验证码,请检查

it is working fine now 现在工作正常

http://plnkr.co/edit/JTnaTm8vOMOVkouaEcde?p=preview http://plnkr.co/edit/JTnaTm8vOMOVkouaEcde?p=preview

Previously you used older animate version I think..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM