{"action":"created","issue":{"url":"https://api.github.com/repos/rwwagner90/angular-styleguide-es6/issues/2","repository_url":"https://api.github.com/repos/rwwagner90/angular-styleguide-es6","labels_url":"https://api.github.com/repos/rwwagner90/angular-styleguide-es6/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/rwwagner90/angular-styleguide-es6/issues/2/comments","events_url":"https://api.github.com/repos/rwwagner90/angular-styleguide-es6/issues/2/events","html_url":"https://github.com/rwwagner90/angular-styleguide-es6/issues/2","id":131148623,"number":2,"title":"non-working \"reccomended\" example","user":{"login":"zachlysobey","id":1310403,"avatar_url":"https://avatars.githubusercontent.com/u/1310403?v=3","gravatar_id":"","url":"https://api.github.com/users/zachlysobey","html_url":"https://github.com/zachlysobey","followers_url":"https://api.github.com/users/zachlysobey/followers","following_url":"https://api.github.com/users/zachlysobey/following{/other_user}","gists_url":"https://api.github.com/users/zachlysobey/gists{/gist_id}","starred_url":"https://api.github.com/users/zachlysobey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachlysobey/subscriptions","organizations_url":"https://api.github.com/users/zachlysobey/orgs","repos_url":"https://api.github.com/users/zachlysobey/repos","events_url":"https://api.github.com/users/zachlysobey/events{/privacy}","received_events_url":"https://api.github.com/users/zachlysobey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-03T20:50:53Z","updated_at":"2016-02-05T15:57:09Z","closed_at":null,"body":"[y022](https://github.com/rwwagner90/angular-styleguide-es6#style-y022)\r\n\r\n```\r\n/* recommended */\r\nangular\r\n    .module('app')\r\n    .controller('SomeController', SomeController);\r\n\r\nclass SomeController {\r\n  constructor() { }\r\n}\r\n```\r\n\r\nES6 classes are not hoisted as I understand it, and as such, this example will not work. SomeController will not be defined here before it is used."},"comment":{"url":"https://api.github.com/repos/rwwagner90/angular-styleguide-es6/issues/comments/180413299","html_url":"https://github.com/rwwagner90/angular-styleguide-es6/issues/2#issuecomment-180413299","issue_url":"https://api.github.com/repos/rwwagner90/angular-styleguide-es6/issues/2","id":180413299,"user":{"login":"zachlysobey","id":1310403,"avatar_url":"https://avatars.githubusercontent.com/u/1310403?v=3","gravatar_id":"","url":"https://api.github.com/users/zachlysobey","html_url":"https://github.com/zachlysobey","followers_url":"https://api.github.com/users/zachlysobey/followers","following_url":"https://api.github.com/users/zachlysobey/following{/other_user}","gists_url":"https://api.github.com/users/zachlysobey/gists{/gist_id}","starred_url":"https://api.github.com/users/zachlysobey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachlysobey/subscriptions","organizations_url":"https://api.github.com/users/zachlysobey/orgs","repos_url":"https://api.github.com/users/zachlysobey/repos","events_url":"https://api.github.com/users/zachlysobey/events{/privacy}","received_events_url":"https://api.github.com/users/zachlysobey/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T15:57:09Z","updated_at":"2016-02-05T15:57:09Z","body":"I'd love to make some PR's, not sure if/when I'll get to it though.\r\n\r\nGot a big Open Source TODO list and not enough time in the day ;-)"}}