Hi Sander,

Your answer is valid for previous Angular versions. From AngularJS 1.2, the 
correct way to do it is using a ng-class directive. I've done with ng-class 
and it's working now.

Anyway, I had to do this because I'm using $anchorScroll(), which makes the 
view reload, and with the animation it had a strange effect.

Is there any way to prevent the view reloading???



P.D: I've tried this, but it's not working (it freeze all the links)
$scope.$on('$locationChangeStart', function(ev) {
        ev.preventDefault();
    });



On Wednesday, 29 October 2014 05:46:17 UTC+1, Sander Elias wrote:
>
> Hi Alex,
>
> Not an animation crack, but just went over the documentation.
> You can globally disable/enable animations pro element with 
> $animate.enabled(Boolean 
> , element)
>
> Regards
> Sander
> ​
>

-- 
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