Closed
Description
Loading-bar works fine, but when I pass throgh a state that doesn't have the "container" of loading bar, I got this error
::::::::::::LOADING BAR START::::::::::::
angular.js:11607 TypeError: Cannot read property 'lastChild' of undefined
at Object.e [as start] (loading-bar.min.js:7)
at app.js:149
at angular.js:16223
at completeOutstandingRequest (angular.js:4905)
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
app.js:158
::::::::::::LOADING BAR END::::::::::::
On line 214 of angular-loading-bar you need to test if $parent[0] exist!
It occurs when I change state that doens't have selector div..
Metadata
Metadata
Assignees
Labels
No labels