{"action":"created","issue":{"url":"https://api.github.com/repos/olov/ng-annotate/issues/204","labels_url":"https://api.github.com/repos/olov/ng-annotate/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/olov/ng-annotate/issues/204/comments","events_url":"https://api.github.com/repos/olov/ng-annotate/issues/204/events","html_url":"https://github.com/olov/ng-annotate/issues/204","id":114071058,"number":204,"title":"Doesn't annotate module().decorator","user":{"login":"mattlewis92","id":6425649,"avatar_url":"https://avatars.githubusercontent.com/u/6425649?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlewis92","html_url":"https://github.com/mattlewis92","followers_url":"https://api.github.com/users/mattlewis92/followers","following_url":"https://api.github.com/users/mattlewis92/following{/other_user}","gists_url":"https://api.github.com/users/mattlewis92/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlewis92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlewis92/subscriptions","organizations_url":"https://api.github.com/users/mattlewis92/orgs","repos_url":"https://api.github.com/users/mattlewis92/repos","events_url":"https://api.github.com/users/mattlewis92/events{/privacy}","received_events_url":"https://api.github.com/users/mattlewis92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T15:12:04Z","updated_at":"2015-11-17T12:34:23Z","closed_at":null,"body":"Angular 1.4 introduced a new decorator helper with the pattern:\r\n```\r\nangular\r\n  .module('moduleName', [])\r\n  .decorator('serviceName', function($delegate, and, other, injectables) {\r\n  });\r\n```\r\n\r\nHowever it's not currently automatically annotated."},"comment":{"url":"https://api.github.com/repos/olov/ng-annotate/issues/comments/157359548","html_url":"https://github.com/olov/ng-annotate/issues/204#issuecomment-157359548","issue_url":"https://api.github.com/repos/olov/ng-annotate/issues/204","id":157359548,"user":{"login":"yggie","id":2663402,"avatar_url":"https://avatars.githubusercontent.com/u/2663402?v=3","gravatar_id":"","url":"https://api.github.com/users/yggie","html_url":"https://github.com/yggie","followers_url":"https://api.github.com/users/yggie/followers","following_url":"https://api.github.com/users/yggie/following{/other_user}","gists_url":"https://api.github.com/users/yggie/gists{/gist_id}","starred_url":"https://api.github.com/users/yggie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yggie/subscriptions","organizations_url":"https://api.github.com/users/yggie/orgs","repos_url":"https://api.github.com/users/yggie/repos","events_url":"https://api.github.com/users/yggie/events{/privacy}","received_events_url":"https://api.github.com/users/yggie/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T12:34:23Z","updated_at":"2015-11-17T12:34:23Z","body":"having the same problem, I had to remove the `decorator` from the chain otherwise `ng-annotate` ignores the module entirely:\r\n\r\n```javascript\r\nvar app = angular.module('moduleName', []);\r\n\r\napp.decorator('serviceName', [/* service names */ function(/* services */) {\r\n});\r\n```"}}