htmlSanitizeValue = function (value) {
    if (!$sanitize) {
      throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as \'escape\'.');
    }
    return $sanitize(value);
  }
@ngdoc method
@name angular.Module#animation
@module ng
@param {string} name animation name
@param {Function} animationFactory Factory function for creating new instance of an
                                   animation.
@description

**NOTE**: animations take effect only if the **ngAnimate** module is loaded.


Defines an animation hook that can be later used with
{@link $animate $animate} service and directives that use this service.

```js
module.animation('.animation-name', function($inject1, $inject2) {
  return {
    eventName : function(element, done) {
      //code to run the animation
      //once complete, then run done()
      return function cancellationFunction(element) {
        //code to cancel the animation
      }
    }
  }
})
```

See {@link ng.$animateProvider#register $animateProvider.register()} and
{@link ngAnimate ngAnimate module} for more information.