You could also probably do something like listen to $stateChangeStart to
set a flag variable you use in your ng-class on the list view. Like ul
ng-repeat="bla" ng-class="{prevent-animation-class: transitioning}" Then
just either listen to stateChangeSuccess, and $stateChangeError to turn the
flag back to false or set a $timeout to set it back after 500 ms if you're
worried about the Event Monster leaving you in an indeterminate state.

...

wait, thread necro. Still, my suggestion stands. :P




On Fri, May 23, 2014 at 2:05 PM, Taylor McIntyre
<[email protected]>wrote:

> My thoughts on this are to use ui-router.
>
> And just nest your views on a ui-view:
>
> <div ui-view id="main">
>    <div ui-view id="sub">
>    </div>
> </div>
>
> When the page loads, both of these views will have the class "ng-enter",
> "ng-enter-active", and so on.
>
> So you can basically key off of if the "main" ui-view has those classes to
> determine if the sub-view should animate.
>
> #main.ng-enter #sub
>    // prevent animation for sub view
>
>
> On Tuesday, June 25, 2013 2:15:24 PM UTC-7, Martin wrote:
>>
>> Hi,
>>
>> i please need an advice on how i can prevent animation of ngRepeat in
>> ngView on initial page load but preserve the animation on filtering the
>> items (enter/leave)?
>> Plnkr: http://plnkr.co/edit/sc1nne<http://plnkr.co/edit/sc1nne?p=preview>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to