{"action":"created","issue":{"url":"https://api.github.com/repos/djfarrelly/MailDev/issues/55","labels_url":"https://api.github.com/repos/djfarrelly/MailDev/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/djfarrelly/MailDev/issues/55/comments","events_url":"https://api.github.com/repos/djfarrelly/MailDev/issues/55/events","html_url":"https://github.com/djfarrelly/MailDev/pull/55","id":64533398,"number":55,"title":"added unread items count in the <title>","user":{"login":"AlexDpy","id":7074618,"avatar_url":"https://avatars.githubusercontent.com/u/7074618?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDpy","html_url":"https://github.com/AlexDpy","followers_url":"https://api.github.com/users/AlexDpy/followers","following_url":"https://api.github.com/users/AlexDpy/following{/other_user}","gists_url":"https://api.github.com/users/AlexDpy/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDpy/subscriptions","organizations_url":"https://api.github.com/users/AlexDpy/orgs","repos_url":"https://api.github.com/users/AlexDpy/repos","events_url":"https://api.github.com/users/AlexDpy/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDpy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-26T14:00:32Z","updated_at":"2015-03-29T01:23:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/djfarrelly/MailDev/pulls/55","html_url":"https://github.com/djfarrelly/MailDev/pull/55","diff_url":"https://github.com/djfarrelly/MailDev/pull/55.diff","patch_url":"https://github.com/djfarrelly/MailDev/pull/55.patch"},"body":"First, thank you for this really nice package !\r\n\r\nI just added the count of unread items in the title, so now we can see, f.e., (5) MailDev.\r\n"},"comment":{"url":"https://api.github.com/repos/djfarrelly/MailDev/issues/comments/87337873","html_url":"https://github.com/djfarrelly/MailDev/pull/55#issuecomment-87337873","issue_url":"https://api.github.com/repos/djfarrelly/MailDev/issues/55","id":87337873,"user":{"login":"AlexDpy","id":7074618,"avatar_url":"https://avatars.githubusercontent.com/u/7074618?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDpy","html_url":"https://github.com/AlexDpy","followers_url":"https://api.github.com/users/AlexDpy/followers","following_url":"https://api.github.com/users/AlexDpy/following{/other_user}","gists_url":"https://api.github.com/users/AlexDpy/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDpy/subscriptions","organizations_url":"https://api.github.com/users/AlexDpy/orgs","repos_url":"https://api.github.com/users/AlexDpy/repos","events_url":"https://api.github.com/users/AlexDpy/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDpy/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T01:23:46Z","updated_at":"2015-03-29T01:23:46Z","body":"You're right. I've updated the PR. I'm just not sure about the usage of the $promise in the loadData(), but it works.\r\n```js\r\nvar loadData = function() {\r\n$scope.items = Email.query();\r\n+ $scope.items.$promise.then(function() {\r\n+ countUnread();\r\n+ });\r\n};\r\n```"}}