using promise of ng-animate under angular 1.3