Change Detection
Adjusting change detection settings allows big improvements for Performance.
- Change detection means: detect / analyse changes, to identify if a component needs to be re-drawn
Settings on component:
changeDetection: ChangeDetectionStrategy.OnPush
- This means: don't perform change detection if @Input()s are not changed
References:
https://blog.thoughtram.io/angular/2016/02/22/angular-2-change-detection-explained.html