A Admin • 833.24K Points Coach Q. How do you mark a component to use OnPush change detection? (A) Add changeDetection: ChangeDetectionStrategy.OnPush in @Component (B) Add @OnPush decorator to class (C) Import OnPushModule (D) Use ngOnChanges lifecycle hook Correct Answer - Option(A) Views: 32 Filed under category Angular JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.