Q. How do you mark a component to use OnPush change detection?
β
Correct Answer: (A)
Add changeDetection: ChangeDetectionStrategy.OnPush in @Component
Explanation: OnPush strategy improves performance by checking only when input references change.