Failed: ViewDestroyedError: Attempt to use a destroyed view: detectChanges code example
Example: destroyed view: detectChanges
if (!this.changeDetectionRef['destroyed']) {
this.changeDetectionRef.detectChanges();
}
if (!this.changeDetectionRef['destroyed']) {
this.changeDetectionRef.detectChanges();
}