You are building an interactive dashboard that includes charts, graphs, and data tables. You need to ensure that the components only update when there is an actual change in the data. Which change detection strategy would be most suitable?

  • Implement custom change detection logic
  • Increase the polling frequency for updates
  • Use OnPush change detection strategy
  • Utilize the default change detection strategy
To ensure components update only when there is an actual change in data, the most suitable change detection strategy is to use the OnPush strategy.
Add your answer
Loading...

Leave a comment

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