{"action":"created","issue":{"url":"https://api.github.com/repos/gaikai/ngTestHarness/issues/9","labels_url":"https://api.github.com/repos/gaikai/ngTestHarness/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/gaikai/ngTestHarness/issues/9/comments","events_url":"https://api.github.com/repos/gaikai/ngTestHarness/issues/9/events","html_url":"https://github.com/gaikai/ngTestHarness/pull/9","id":58420451,"number":9,"title":"Injectables alternative that David Maddison proposed.","user":{"login":"treycordova","id":1683813,"avatar_url":"https://avatars.githubusercontent.com/u/1683813?v=3","gravatar_id":"","url":"https://api.github.com/users/treycordova","html_url":"https://github.com/treycordova","followers_url":"https://api.github.com/users/treycordova/followers","following_url":"https://api.github.com/users/treycordova/following{/other_user}","gists_url":"https://api.github.com/users/treycordova/gists{/gist_id}","starred_url":"https://api.github.com/users/treycordova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treycordova/subscriptions","organizations_url":"https://api.github.com/users/treycordova/orgs","repos_url":"https://api.github.com/users/treycordova/repos","events_url":"https://api.github.com/users/treycordova/events{/privacy}","received_events_url":"https://api.github.com/users/treycordova/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-20T22:37:12Z","updated_at":"2015-02-24T23:21:08Z","closed_at":"2015-02-24T23:20:41Z","pull_request":{"url":"https://api.github.com/repos/gaikai/ngTestHarness/pulls/9","html_url":"https://github.com/gaikai/ngTestHarness/pull/9","diff_url":"https://github.com/gaikai/ngTestHarness/pull/9.diff","patch_url":"https://github.com/gaikai/ngTestHarness/pull/9.patch"},"body":"How's this look, @maddisondavid?\r\n\r\nThe main difference here is that `var` is no longer used.\r\nThat means that `$scope` is actually defined inside an object:\r\n```javascript\r\nvar controller = harness.getController('myCtrl', {\r\n    $scope: {/* scope variables */},\r\n    /* ... injectables */\r\n});\r\n\r\n// $scope is still accessible through controller:\r\nconsole.log(controller.$scope) // === scope variables\r\n```"},"comment":{"url":"https://api.github.com/repos/gaikai/ngTestHarness/issues/comments/75870531","html_url":"https://github.com/gaikai/ngTestHarness/pull/9#issuecomment-75870531","issue_url":"https://api.github.com/repos/gaikai/ngTestHarness/issues/9","id":75870531,"user":{"login":"NateFerrero","id":688553,"avatar_url":"https://avatars.githubusercontent.com/u/688553?v=3","gravatar_id":"","url":"https://api.github.com/users/NateFerrero","html_url":"https://github.com/NateFerrero","followers_url":"https://api.github.com/users/NateFerrero/followers","following_url":"https://api.github.com/users/NateFerrero/following{/other_user}","gists_url":"https://api.github.com/users/NateFerrero/gists{/gist_id}","starred_url":"https://api.github.com/users/NateFerrero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NateFerrero/subscriptions","organizations_url":"https://api.github.com/users/NateFerrero/orgs","repos_url":"https://api.github.com/users/NateFerrero/repos","events_url":"https://api.github.com/users/NateFerrero/events{/privacy}","received_events_url":"https://api.github.com/users/NateFerrero/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T23:21:08Z","updated_at":"2015-02-24T23:21:08Z","body":"Closed in favor of #10 "}}