πŸ“Š Angular
Q. What is the main purpose of ChangeDetectionStrategy.OnPush?
  • (A) Runs change detection on every event
  • (B) Improves performance by reducing change detection cycles
  • (C) Disables change detection completely
  • (D) Works only with services
πŸ’¬ Discuss
βœ… Correct Answer: (B) Improves performance by reducing change detection cycles

Explanation: OnPush runs change detection only when input references change or events occur.

Explanation by: Kartik Sharma
OnPush runs change detection only when input references change or events occur.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
14
Total Visits
πŸ“½οΈ
1 mo ago
Published
πŸŽ–οΈ
Kartik Sharma
Publisher
πŸ“ˆ
87%
Success Rate