{"action":"created","issue":{"url":"https://api.github.com/repos/ColinTheRobot/ang-auth/issues/7","repository_url":"https://api.github.com/repos/ColinTheRobot/ang-auth","labels_url":"https://api.github.com/repos/ColinTheRobot/ang-auth/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ColinTheRobot/ang-auth/issues/7/comments","events_url":"https://api.github.com/repos/ColinTheRobot/ang-auth/issues/7/events","html_url":"https://github.com/ColinTheRobot/ang-auth/issues/7","id":183086843,"number":7,"title":"router.js line 20-21 controller/controllerAs in a state","user":{"login":"ztretterath","id":19480478,"avatar_url":"https://avatars.githubusercontent.com/u/19480478?v=3","gravatar_id":"","url":"https://api.github.com/users/ztretterath","html_url":"https://github.com/ztretterath","followers_url":"https://api.github.com/users/ztretterath/followers","following_url":"https://api.github.com/users/ztretterath/following{/other_user}","gists_url":"https://api.github.com/users/ztretterath/gists{/gist_id}","starred_url":"https://api.github.com/users/ztretterath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ztretterath/subscriptions","organizations_url":"https://api.github.com/users/ztretterath/orgs","repos_url":"https://api.github.com/users/ztretterath/repos","events_url":"https://api.github.com/users/ztretterath/events{/privacy}","received_events_url":"https://api.github.com/users/ztretterath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-14T15:57:31Z","updated_at":"2016-10-14T15:59:24Z","closed_at":null,"body":"`  .state('login', {\r\n      url: '/login',\r\n      templateUrl: '/partials/login.html',\r\n      controller: 'AuthCtrl',\r\n      controllerAs: 'auth'\r\n    })`\r\n\r\nWe have not yet seen controllers being specified within a state. This concept is more unfamiliarity than confusion. I am assuming it is just another way to use a specific controller and when placed within a state, code becomes more clean (specifically the index html file)."},"comment":{"url":"https://api.github.com/repos/ColinTheRobot/ang-auth/issues/comments/253843416","html_url":"https://github.com/ColinTheRobot/ang-auth/issues/7#issuecomment-253843416","issue_url":"https://api.github.com/repos/ColinTheRobot/ang-auth/issues/7","id":253843416,"user":{"login":"ColinTheRobot","id":5641925,"avatar_url":"https://avatars.githubusercontent.com/u/5641925?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinTheRobot","html_url":"https://github.com/ColinTheRobot","followers_url":"https://api.github.com/users/ColinTheRobot/followers","following_url":"https://api.github.com/users/ColinTheRobot/following{/other_user}","gists_url":"https://api.github.com/users/ColinTheRobot/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinTheRobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinTheRobot/subscriptions","organizations_url":"https://api.github.com/users/ColinTheRobot/orgs","repos_url":"https://api.github.com/users/ColinTheRobot/repos","events_url":"https://api.github.com/users/ColinTheRobot/events{/privacy}","received_events_url":"https://api.github.com/users/ColinTheRobot/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T15:59:24Z","updated_at":"2016-10-14T15:59:24Z","body":"Exactly\r\n\r\nIf you look at the login.html partial, there is no ng-controller=\"AuthCtrl as auth\" \r\n\r\nWe're setting it in the router."}}
{"actor":{"display_login":"ColinTheRobot"}}