Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Unsubscribe issue #28

Closed
GirishKanchan opened this issue Apr 15, 2017 · 2 comments · Fixed by #86
Closed

Object Unsubscribe issue #28

GirishKanchan opened this issue Apr 15, 2017 · 2 comments · Fixed by #86

Comments

@GirishKanchan
Copy link

error_handler.js:54 EXCEPTION: Uncaught (in promise): Error: Error in :0:0 caused by: object unsubscribed
Error: Error in :0:0 caused by: object unsubscribed
at ViewWrappedError.ZoneAwareError (http://localhost:4200/polyfills.bundle.js:1137:33)
at ViewWrappedError.BaseError [as constructor] (http://localhost:4200/vendor.bundle.js:35470:16)
at ViewWrappedError.WrappedError [as constructor] (http://localhost:4200/vendor.bundle.js:35535:16)
at new ViewWrappedError (http://localhost:4200/vendor.bundle.js:70097:16)
at CompiledTemplate.proxyViewClass.DebugAppView.rethrowWithContext (http://localhost:4200/vendor.bundle.js:110165:23)
at CompiledTemplate.proxyViewClass.DebugAppView.detectChanges (http://localhost:4200/vendor.bundle.js:110138:18)
at ViewRef
.detectChanges (http://localhost:4200/vendor.bundle.js:71024:20)
at RouterOutlet.activate (http://localhost:4200/vendor.bundle.js:76532:42)
at ActivateRoutes.placeComponentIntoOutlet (http://localhost:4200/vendor.bundle.js:29796:16)
at ActivateRoutes.activateRoutes (http://localhost:4200/vendor.bundle.js:29763:26)
at http://localhost:4200/vendor.bundle.js:29699:58
at Array.forEach (native)
at ActivateRoutes.activateChildRoutes (http://localhost:4200/vendor.bundle.js:29699:29)
at ActivateRoutes.activateRoutes (http://localhost:4200/vendor.bundle.js:29743:22)
at http://localhost:4200/vendor.bundle.js:29699:58

@MurhafSousli
Copy link
Owner

MurhafSousli commented Apr 15, 2017

Please provide information about the version you are using, your usage of the component (where exactly do you add it and how do you start/stop the progress).

I think this is the same of issue #27, I will assume that you are moving between 2 routes and you got this error. this is because you added the progress bar in a child component.
put the <ng-progress></ng-progress> in your root component template. NOT in a child component that can be destroyed

@GirishKanchan
Copy link
Author

exactly!!! issue solved thank you

PowerKiKi added a commit to PowerKiKi/ngx-progressbar that referenced this issue Oct 25, 2017
This fix the javascript errors, ObjectUnsubscribedError,
that were thrown when navigating away from a page with
the progress bar to a page without the progress bar.

Fixes MurhafSousli#27
Fixes MurhafSousli#28
Fixes MurhafSousli#33
Fixes MurhafSousli#41
Fixes MurhafSousli#81
Fixes MurhafSousli#82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants