For optimizing performance in large lists where data is immutable, one should use the ChangeDetectionStrategy.______ strategy.

  • Default
  • OnPush
  • Always
  • Manual
To optimize performance in Angular applications, especially when dealing with large lists and immutable data, you should use the ChangeDetectionStrategy.OnPush strategy. This strategy minimizes change detection cycles by only checking components when their inputs change. It can significantly improve performance. The other options are not valid strategies for optimizing change detection.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *