For now I will just run a function on ng-click. In this function I will 
just do (code in CoffeeScript):

      sleep 1
      @location.path "/new-path"
      NgController.digest @scope

where the css-transition takes one second. Now I just need to add a CSS 
class on the click to start the transition.



On Monday, 7 April 2014 14:59:55 UTC+1, Tomasz Jureczko wrote:
>
> Dear Brilliant JavaScript'ers,
>
> I have an AngularJS 1.2.9 app. My task is: On a link clicked (ng-click) 
> start an animation and delay view change until animation finishes. By 
> animation I mean a CSS transition. So simply I want to delay view change 
> for the time of an animation. Could you please guide me for the best 
> approach. Maybe create my own directive a replace ng-click with it? My own 
> directive would start the animation and then resolve the route.
>

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