July 2017
Intermediate to advanced
454 pages
10h 1m
English
We use OnPush to improve the performance of our Angular applications. We have to explicitly mention that we want to use the OnPush value for ChangeDetectionStrategy.
Changes are triggered by events and the propagation of changes goes for the entire object that is rendered in the view template and not for each property.
When we use the OnPush value, we are forcing Angular to depend only on the inputs. We pass the objects through the @Input decorator and only the complete object and it's properties will be affected and not any individual property changed.
Read now
Unlock full access