Angular · Senior · Question 13 of 75

When might you use ChangeDetectorRef.detach()?

Explanation

A detached view is skipped by change detection until it is reattach()ed or checked manually. It is a sharp tool: forgetting to update leaves the UI stale.

Further reading

Problem with a question

Angular · Senior · question 13

Test yourself

Take the Angular · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz