N
N
No Name2018-06-17 20:49:30
Angular
No Name, 2018-06-17 20:49:30

What is Change Detection Strategy, when and how to use it?

What is Change Detection Strategy, when and how to use it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
denismaster, 2018-06-17
@denismaster

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 question

Ask a Question

731 491 924 answers to any question