I am getting this exception while changing the routes
Expected Behavior
the page of selected route shoud be display withouth exception on VgMedia
Actual Behavior
Error description:
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'unsubscribe' of undefined
TypeError: Cannot read property 'unsubscribe' of undefined
at VgMedia.ngOnDestroy (vg-media.js:404)
at callProviderLifecycles (core.js:12712)
at callElementProvidersLifecycles (core.js:12673)
at callLifecycleHooksChildrenFirst (core.js:12656)
at destroyView (core.js:14022)
at callViewAction (core.js:14173)
at execComponentViewsAction (core.js:14085)
at destroyView (core.js:14021)
at callWithDebugContext (core.js:15056)
at Object.debugDestroyView [as destroyView] (core.js:14607)
at VgMedia.ngOnDestroy (vg-media.js:404)
at callProviderLifecycles (core.js:12712)
at callElementProvidersLifecycles (core.js:12673)
at callLifecycleHooksChildrenFirst (core.js:12656)
at destroyView (core.js:14022)
at callViewAction (core.js:14173)
at execComponentViewsAction (core.js:14085)
at destroyView (core.js:14021)
at callWithDebugContext (core.js:15056)
at Object.debugDestroyView [as destroyView] (core.js:14607)
at resolvePromise (zone.js:809)
at resolvePromise (zone.js:775)
at eval (zone.js:858)
at ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:4740)
at ZoneDelegate.invokeTask (zone.js:420)
at Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)
at ZoneTask.invokeTask [as invoke] (zone.js:500)
at invokeTask (zone.js:1517)
Description
I am getting this exception while changing the routes
Expected Behavior
the page of selected route shoud be display withouth exception on VgMedia
Actual Behavior
Error description: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'unsubscribe' of undefined TypeError: Cannot read property 'unsubscribe' of undefined at VgMedia.ngOnDestroy (vg-media.js:404) at callProviderLifecycles (core.js:12712) at callElementProvidersLifecycles (core.js:12673) at callLifecycleHooksChildrenFirst (core.js:12656) at destroyView (core.js:14022) at callViewAction (core.js:14173) at execComponentViewsAction (core.js:14085) at destroyView (core.js:14021) at callWithDebugContext (core.js:15056) at Object.debugDestroyView [as destroyView] (core.js:14607) at VgMedia.ngOnDestroy (vg-media.js:404) at callProviderLifecycles (core.js:12712) at callElementProvidersLifecycles (core.js:12673) at callLifecycleHooksChildrenFirst (core.js:12656) at destroyView (core.js:14022) at callViewAction (core.js:14173) at execComponentViewsAction (core.js:14085) at destroyView (core.js:14021) at callWithDebugContext (core.js:15056) at Object.debugDestroyView [as destroyView] (core.js:14607) at resolvePromise (zone.js:809) at resolvePromise (zone.js:775) at eval (zone.js:858) at ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:4740) at ZoneDelegate.invokeTask (zone.js:420) at Zone.runTask (zone.js:188) at drainMicroTaskQueue (zone.js:595) at ZoneTask.invokeTask [as invoke] (zone.js:500) at invokeTask (zone.js:1517)
Steps to Reproduce
HTML page definition:
Component.ts:
package.json
"dependencies": { "@angular/animations": "^5.2.0", "@angular/common": "^5.2.0", "@angular/compiler": "^5.2.0", "@angular/core": "^5.2.0", "@angular/forms": "^5.2.0", "@angular/http": "^5.2.0", "@angular/platform-browser": "^5.2.0", "@angular/platform-browser-dynamic": "^5.2.0", "@angular/router": "^5.2.0", "@types/c3": "^0.6.0", "@types/moment": "^2.13.0", "ag-grid": "^18.1.2", "ag-grid-angular": "^18.1.0", "ag-grid-enterprise": "^18.1.1", "c3": "^0.6.4", "core-js": "^2.4.1", "d3": "^5.5.0", "hls.js": "^0.10.1", "moment": "^2.22.1", "ng2-tree": "^2.0.0-rc.11", "npm": "^5.8.0", "rxjs": "^5.5.0", "rxjs-compat": "^6.0.0", "videogular2": "^6.3.0", "zone.js": "^0.8.19"
Attachments
Try to include screenshots for bugs or design assets for enhancements