In Angular 1.3 $animate returns a promise