javascript - Unknown provider: $animateCssProvider <- $animateCss <- $uibModalStack <- $uibModal - Stack Ov

admin2025-04-22  0

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.

I tried angular-bootstrap version from 1.1 to the latest, nothing works with the 1.3.20. All I get is unknown provider.

This plunkr code works when you ment line 9 & unment line 10.

But it works nicely when 1.3.20's ngAnimate & angular version with angular-bootstrap version 0.14.3 which is very old code.

How can I fix this issue without upgrading angular version?

If I can add $animateCss provider explicitly does it work? 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.

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.

I tried angular-bootstrap version from 1.1 to the latest, nothing works with the 1.3.20. All I get is unknown provider.

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

This plunkr code works when you ment line 9 & unment line 10.

But it works nicely when 1.3.20's ngAnimate & angular version with angular-bootstrap version 0.14.3 which is very old code.

How can I fix this issue without upgrading angular version?

If I can add $animateCss provider explicitly does it work? 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.

Share Improve this question edited Jan 28, 2017 at 0:51 Claies 22.3k4 gold badges55 silver badges80 bronze badges asked Nov 23, 2016 at 6:39 GarfieldGarfield 2,5354 gold badges34 silver badges55 bronze badges 2
  • what is animate.js file? – Max Koretskyi Commented Nov 23, 2016 at 6:50
  • I thought of patching $animateCss provider but I am not clear on how to make it work – Garfield Commented Nov 23, 2016 at 6:51
Add a ment  | 

2 Answers 2

Reset to default 7

From the documentation for 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

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

Previously you used older animate version I think..
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745251643a292542.html

最新回复(0)