Skip to content

Problem with loading-bar #217

Closed
Closed
@furyscript

Description

@furyscript

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions