{"action":"closed","issue":{"url":"https://api.github.com/repos/google/closure-compiler/issues/956","labels_url":"https://api.github.com/repos/google/closure-compiler/issues/956/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-compiler/issues/956/comments","events_url":"https://api.github.com/repos/google/closure-compiler/issues/956/events","html_url":"https://github.com/google/closure-compiler/issues/956","id":78209707,"number":956,"title":"ES6: @ngInject must be applied to class body, not constructor","user":{"login":"calebegg","id":782920,"avatar_url":"https://avatars.githubusercontent.com/u/782920?v=3","gravatar_id":"","url":"https://api.github.com/users/calebegg","html_url":"https://github.com/calebegg","followers_url":"https://api.github.com/users/calebegg/followers","following_url":"https://api.github.com/users/calebegg/following{/other_user}","gists_url":"https://api.github.com/users/calebegg/gists{/gist_id}","starred_url":"https://api.github.com/users/calebegg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebegg/subscriptions","organizations_url":"https://api.github.com/users/calebegg/orgs","repos_url":"https://api.github.com/users/calebegg/repos","events_url":"https://api.github.com/users/calebegg/events{/privacy}","received_events_url":"https://api.github.com/users/calebegg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/closure-compiler/labels/ES6","name":"ES6","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"MatrixFrog","id":244381,"avatar_url":"https://avatars.githubusercontent.com/u/244381?v=3","gravatar_id":"","url":"https://api.github.com/users/MatrixFrog","html_url":"https://github.com/MatrixFrog","followers_url":"https://api.github.com/users/MatrixFrog/followers","following_url":"https://api.github.com/users/MatrixFrog/following{/other_user}","gists_url":"https://api.github.com/users/MatrixFrog/gists{/gist_id}","starred_url":"https://api.github.com/users/MatrixFrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatrixFrog/subscriptions","organizations_url":"https://api.github.com/users/MatrixFrog/orgs","repos_url":"https://api.github.com/users/MatrixFrog/repos","events_url":"https://api.github.com/users/MatrixFrog/events{/privacy}","received_events_url":"https://api.github.com/users/MatrixFrog/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-05-19T18:56:08Z","updated_at":"2015-05-21T16:19:19Z","closed_at":"2015-05-21T16:19:19Z","body":"This code sample doesn't work (`@ngInject` is ignored):\r\n```es6\r\nclass A {\r\n  /** @ngInject */\r\n  constructor($scope) {}\r\n}\r\n```\r\n\r\nThis one does:\r\n```es6\r\n/** @ngInject */\r\nclass A {\r\n  constructor($scope) {}\r\n}\r\n```\r\n\r\nI think it makes more sense to have the `@ngInject` on the constructor, as that's where the `@param`s are."}}