{"action":"created","issue":{"url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/217","labels_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/217/comments","events_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/217/events","html_url":"https://github.com/chieffancypants/angular-loading-bar/issues/217","id":92878516,"number":217,"title":"Problem with loading-bar","user":{"login":"furyscript","id":10270403,"avatar_url":"https://avatars.githubusercontent.com/u/10270403?v=3","gravatar_id":"","url":"https://api.github.com/users/furyscript","html_url":"https://github.com/furyscript","followers_url":"https://api.github.com/users/furyscript/followers","following_url":"https://api.github.com/users/furyscript/following{/other_user}","gists_url":"https://api.github.com/users/furyscript/gists{/gist_id}","starred_url":"https://api.github.com/users/furyscript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furyscript/subscriptions","organizations_url":"https://api.github.com/users/furyscript/orgs","repos_url":"https://api.github.com/users/furyscript/repos","events_url":"https://api.github.com/users/furyscript/events{/privacy}","received_events_url":"https://api.github.com/users/furyscript/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-07-03T13:38:08Z","updated_at":"2015-11-19T17:09:45Z","closed_at":null,"body":"Loading-bar works fine, but when I pass throgh a state that doesn't have the \"container\" of loading bar, I got this error\r\n```javascript\r\n::::::::::::LOADING BAR START::::::::::::\r\nangular.js:11607 TypeError: Cannot read property 'lastChild' of undefined\r\n    at Object.e [as start] (loading-bar.min.js:7)\r\n    at app.js:149\r\n    at angular.js:16223\r\n    at completeOutstandingRequest (angular.js:4905)\r\n    at angular.js:5285(anonymous function) @ angular.js:11607$get @ angular.js:8557(anonymous function) @ angular.js:16226completeOutstandingRequest @ angular.js:4905(anonymous function) @ angular.js:5285\r\napp.js:158\r\n ::::::::::::LOADING BAR END::::::::::::\r\n````\r\nOn line 214 of angular-loading-bar you need to test if $parent[0] exist!\r\nIt occurs when I change state that doens't have selector div.."},"comment":{"url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/comments/158121717","html_url":"https://github.com/chieffancypants/angular-loading-bar/issues/217#issuecomment-158121717","issue_url":"https://api.github.com/repos/chieffancypants/angular-loading-bar/issues/217","id":158121717,"user":{"login":"juliancuni","id":8204040,"avatar_url":"https://avatars.githubusercontent.com/u/8204040?v=3","gravatar_id":"","url":"https://api.github.com/users/juliancuni","html_url":"https://github.com/juliancuni","followers_url":"https://api.github.com/users/juliancuni/followers","following_url":"https://api.github.com/users/juliancuni/following{/other_user}","gists_url":"https://api.github.com/users/juliancuni/gists{/gist_id}","starred_url":"https://api.github.com/users/juliancuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliancuni/subscriptions","organizations_url":"https://api.github.com/users/juliancuni/orgs","repos_url":"https://api.github.com/users/juliancuni/repos","events_url":"https://api.github.com/users/juliancuni/events{/privacy}","received_events_url":"https://api.github.com/users/juliancuni/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T17:09:45Z","updated_at":"2015-11-19T17:09:45Z","body":"Yeah, indeed should be careful when bower install/update. I am thinking to fork this repo, make adjustments (that you proposed) and update bower.json file to install from this new fork. "}}