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();
}