{"action":"opened","issue":{"url":"https://api.github.com/repos/curran/screencasts/issues/7","labels_url":"https://api.github.com/repos/curran/screencasts/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/curran/screencasts/issues/7/comments","events_url":"https://api.github.com/repos/curran/screencasts/issues/7/events","html_url":"https://github.com/curran/screencasts/issues/7","id":70742923,"number":7,"title":"Factory Undefined","user":{"login":"pkumar01","id":5529095,"avatar_url":"https://avatars.githubusercontent.com/u/5529095?v=3","gravatar_id":"","url":"https://api.github.com/users/pkumar01","html_url":"https://github.com/pkumar01","followers_url":"https://api.github.com/users/pkumar01/followers","following_url":"https://api.github.com/users/pkumar01/following{/other_user}","gists_url":"https://api.github.com/users/pkumar01/gists{/gist_id}","starred_url":"https://api.github.com/users/pkumar01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkumar01/subscriptions","organizations_url":"https://api.github.com/users/pkumar01/orgs","repos_url":"https://api.github.com/users/pkumar01/repos","events_url":"https://api.github.com/users/pkumar01/events{/privacy}","received_events_url":"https://api.github.com/users/pkumar01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-24T17:17:53Z","updated_at":"2015-04-24T17:17:53Z","closed_at":null,"body":"Hi,\r\n\r\nI was going through all of your tutorial and it is best and easy to understand, i am having one query on example 40 when i am passing $scope as a dependency then why countries is coming as undefined\r\n\r\nexample code below:\r\ncountryApp.controller('CountryListCtrl', ['$scope', function ($scope, countries){\r\n        countries.list(function(countries) {\r\n          $scope.countries = countries;\r\n        });\r\n          \r\n          console.log(countries);\r\n      }]); \r\n\r\nPlease help me understand.\r\n\r\nThanks,\r\nPradeep"}}