Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This is a strategy for checking for changes in a component. When a component changes, Angular rebuilds its DOM node. This is not a cheap operation in terms of performance.
If you set ChangeDetectionStategy.OnPush on a component, then it will only re-render the component when its @Input() and @Output() properties change. In other cases, this will not happen. This will improve the performance of the application.
Read more: https://angular-2-training-book.rangle.io/handout/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question