angular/angular.js — pull request #10068 by gdi2290 (2014-11-15 09:52:04+00:00)
Title: fix($animate): applyStyles from options on leave

missing [options] API that should either be removed from the docs or added in the code

@param {object=} options an optional collection of options that will be applied to the element.

the tests weren't working for this feature
```javascript
$animate.leave(element, 'off', {
to: { color: 'blue' }
});
assertColor('blue'); //nothing should happen the element is gone anyway
```

you can view the docs here https://ng-click.com/$animate#leave