Uncaught Error: ViewDestroyedError: Attempt to use a destroyed view: detectChanges
at viewDestroyedError (core.js:7398)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:10843)
at checkAndUpdateView (core.js:10243)
at callWithDebugContext (core.js:11136)
at Object.debugCheckAndUpdateView [as checkAndUpdateView] (core.js:10814)
at ViewRef_.push../node_modules/@angular/core/fesm5/core.js.ViewRef_.detectChanges (core.js:8630)
at mxb058.component.ts:266
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:496)