Quick Answer
Detach from CD: ChangeDetectorRef.detach() removes the component from the CD tree - Angular won't check it automatically. Manually call detectChanges() when needed. Skip CD: OnPush strategy skips components unless inputs change. Run code outside zone: NgZone.runOutsideAngular() prevents zone notifications from triggering CD for non-UI work. These techniques are essential for performance-critical components.
Answer
Using OnPush, ChangeDetectorRef.detach(), or manual checks, Angular can skip change detection for performance optimization.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.