{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/10688","labels_url":"https://api.github.com/repos/angular/angular.js/issues/10688/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/10688/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/10688/events","html_url":"https://github.com/angular/angular.js/issues/10688","id":53798596,"number":10688,"title":"Promise returned by $animate.addClass() is resolving immediately","user":{"login":"antch","id":4552169,"avatar_url":"https://avatars.githubusercontent.com/u/4552169?v=3","gravatar_id":"","url":"https://api.github.com/users/antch","html_url":"https://github.com/antch","followers_url":"https://api.github.com/users/antch/followers","following_url":"https://api.github.com/users/antch/following{/other_user}","gists_url":"https://api.github.com/users/antch/gists{/gist_id}","starred_url":"https://api.github.com/users/antch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antch/subscriptions","organizations_url":"https://api.github.com/users/antch/orgs","repos_url":"https://api.github.com/users/antch/repos","events_url":"https://api.github.com/users/antch/events{/privacy}","received_events_url":"https://api.github.com/users/antch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T20:43:40Z","updated_at":"2015-01-08T20:55:18Z","closed_at":null,"body":"When using `$animate.addClass()` to trigger a CSS animation, the returned promise appears to resolve immediately, instead of after the animation completes.\r\n\r\nI [created a Plunker](http://plnkr.co/edit/dwBGodZiKM8fTQVKnEm1?p=preview) that demonstrates the issue."},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/69247523","html_url":"https://github.com/angular/angular.js/issues/10688#issuecomment-69247523","issue_url":"https://api.github.com/repos/angular/angular.js/issues/10688","id":69247523,"user":{"login":"caitp","id":2294695,"avatar_url":"https://avatars.githubusercontent.com/u/2294695?v=3","gravatar_id":"","url":"https://api.github.com/users/caitp","html_url":"https://github.com/caitp","followers_url":"https://api.github.com/users/caitp/followers","following_url":"https://api.github.com/users/caitp/following{/other_user}","gists_url":"https://api.github.com/users/caitp/gists{/gist_id}","starred_url":"https://api.github.com/users/caitp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caitp/subscriptions","organizations_url":"https://api.github.com/users/caitp/orgs","repos_url":"https://api.github.com/users/caitp/repos","events_url":"https://api.github.com/users/caitp/events{/privacy}","received_events_url":"https://api.github.com/users/caitp/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T20:55:18Z","updated_at":"2015-01-08T20:55:18Z","body":"there are 2 problems with your plunker\r\n\r\n1. you are mixing and matching versions of angular and angular-animate. Make sure they are the same version, always!\r\n2. You are not actually using the `ngAnimate` module. The `$animate` service in the `ng` module (from angular.js rather than angular-animate.js) will always resolve this promise immediately, because it's just a dummy API. Using the actual ngAnimate module, it appears to work correctly, see http://plnkr.co/edit/oulm9gcPf795nLTcuWqY?p=preview"}}