diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index fe2fd078baa0..7c6a59d7be7e 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -833,7 +833,8 @@ angular.module('ngAnimate', ['ng']) * promise that was returned when the animation was started. * * ```js - * var promise = $animate.addClass(element, 'super-long-animation').then(function() { + * var promise = $animate.addClass(element, 'super-long-animation'); + * promise.then(function() { * //this will still be called even if cancelled * }); *