Playing timing games is always dangerous as the network latency is beyond your control, so if it were me I'd tie hiding of a row to the addition of data. That way a row could be animated out after x seconds after the last row was added. That aside you can use the $timeout or $interval service to just animate out a row on a set time interval. Check out the docs on those two services.
Gordon On Sunday, March 30, 2014 11:16:27 AM UTC-5, daniel mišina wrote: > > Hey guys. What about something like this. > http://jsfiddle.net/angularjs_de/dxQqm/ > > But I need it in this modification: I'm pushing dynamic JSON data to view > (every 10seconds) and maybe every 5second I would like to run this > animation of hiding first and showing last element. Is this possible in > Angular? I mean do data loading and animating separately? > -- 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.
