Question · Angular course · Module 12: Security and Performance

OnPush Change Detection

When does a component with ChangeDetectionStrategy.OnPush update?

Answer options

  • On every change detection cycle
  • Only when an @Input reference changes, an event fires, or an async pipe emits
  • Never automatically - always manually
  • Every 100ms

You can check the correct answer by solving this task in the CodeWorlds game.