ui-router icon indicating copy to clipboard operation
ui-router copied to clipboard

Animation - State.go not synchronized with ng-class

Open seinavco opened this issue 12 years ago • 4 comments

Hi,

I want to create animation between state transitions.

I use $state.go() but the transition is not working. I saw that the ng-class is not synchronized between the two ui-view that are changing. Each ui-view has different animation class instead of having the same class to perform the animation in a good way.

It works when I use $location.path().

Thanks

seinavco avatar Oct 22 '14 08:10 seinavco

Here is a proof : look at the two views with two different animation classes "popin" and "popout"

animation

seinavco avatar Oct 22 '14 08:10 seinavco

I can confirm this. Plunk: http://plnkr.co/edit/EaYLo25P4Z7ea2ozIl4B?p=preview

m4r71n avatar Jan 28 '15 11:01 m4r71n

Updated Plunk with Angular 1.3.16 and UI-Router 0.2.15: http://plnkr.co/edit/LTLeOGXwqJUqIygkke8N?p=preview Updated Plunk with Angular 1.4.0 and UI-Router 0.2.15: http://plnkr.co/edit/MpkvkxNkiZpQQwLNDgGw?p=preview

With Angular 1.4.0 $location.path() is also broken

m4r71n avatar Jun 09 '15 21:06 m4r71n

Closing due to age. If this is still valid in the latest relase, will reopen.

eddiemonge avatar Mar 03 '16 22:03 eddiemonge