Skip to main content

Angular performance techniques

Suggested resources

Suggested topics

  • Optimizing change detection
    • Disable NgZone
    • On push change detection and immutable data structures
    • Manual change detection
  • Reducing component tax
    • Render using native host elements
      • Use host listeners and bindings
      • Use :host styles
    • Use <ng-container>
    • Use <ng-template>
    • Use *cdkVirtualFor
    • Use trackBy with *ngFor
  • Reduce bundle size
    • Code-splitting and lazy loading
    • Differential loading
  • Heavy data processing
    • Multithreading using dedicated web workers
  • Pipes
    • Pure pipes
    • Memoized pipes