Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ngAnimate in AngularUI modal

Are there limitations when using ngAnimate inside an AngularUI modal that is bound via templateUrl?

I could not get the animation to work inside the modal. Show & Hide of course work, just without animation.

like image 267
peter Avatar asked Dec 02 '25 10:12

peter


1 Answers

Maybe it will help someone:

New modal window is appended to the end of <body>.

If the root element of application is <body> or <html> everything works fine. But if the root of application is any tag in the <body>, animation will not work in the modal.

Here is a not working example and a working example.

like image 70
Ilya Makhrov Avatar answered Dec 04 '25 04:12

Ilya Makhrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!