{"action":"created","issue":{"url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/153","labels_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/153/comments","events_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/153/events","html_url":"https://github.com/chieffancypants/angular-loading-bar/issues/153","id":53710942,"number":153,"title":"Why do I get cfpLoadingBar:completed duplicate?","user":{"login":"PavelDemyanenko","id":506399,"avatar_url":"https://avatars.githubusercontent.com/u/506399?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelDemyanenko","html_url":"https://github.com/PavelDemyanenko","followers_url":"https://api.github.com/users/PavelDemyanenko/followers","following_url":"https://api.github.com/users/PavelDemyanenko/following{/other_user}","gists_url":"https://api.github.com/users/PavelDemyanenko/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelDemyanenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelDemyanenko/subscriptions","organizations_url":"https://api.github.com/users/PavelDemyanenko/orgs","repos_url":"https://api.github.com/users/PavelDemyanenko/repos","events_url":"https://api.github.com/users/PavelDemyanenko/events{/privacy}","received_events_url":"https://api.github.com/users/PavelDemyanenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T03:29:32Z","updated_at":"2015-01-09T15:06:17Z","closed_at":null,"body":"Hi! \r\nI'm doing such stuff to catch loading/loaded state and toggle some elements on page:\r\n```\r\nsite.run ($rootScope) ->\r\n  $rootScope.$on \"cfpLoadingBar:loading\", (event, data) ->\r\n    console.log \"loading\", data\r\n    return\r\n  $rootScope.$on \"cfpLoadingBar:completed\", ->\r\n    console.log \"loaded\"\r\n    return\r\n```\r\nBut I have a situation when a template from directive from loaded ng-view partial is being processed and I see the duplicate of \"loaded\" message about the completed state. \r\n\r\nYou can check console output at [http://development.demyanenko.divshot.io](http://development.demyanenko.divshot.io)\r\nWhat is the best way to handle this situation? Thank you in advance. \r\n\r\nCheers,\r\nPavel"},"comment":{"url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/comments/69345600","html_url":"https://github.com/chieffancypants/angular-loading-bar/issues/153#issuecomment-69345600","issue_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/153","id":69345600,"user":{"login":"PavelDemyanenko","id":506399,"avatar_url":"https://avatars.githubusercontent.com/u/506399?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelDemyanenko","html_url":"https://github.com/PavelDemyanenko","followers_url":"https://api.github.com/users/PavelDemyanenko/followers","following_url":"https://api.github.com/users/PavelDemyanenko/following{/other_user}","gists_url":"https://api.github.com/users/PavelDemyanenko/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelDemyanenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelDemyanenko/subscriptions","organizations_url":"https://api.github.com/users/PavelDemyanenko/orgs","repos_url":"https://api.github.com/users/PavelDemyanenko/repos","events_url":"https://api.github.com/users/PavelDemyanenko/events{/privacy}","received_events_url":"https://api.github.com/users/PavelDemyanenko/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T15:06:17Z","updated_at":"2015-01-09T15:06:17Z","body":"I was advised to change latencyThreshold. I'll check it later."}}