Angular · Middle · Question 3 of 75

When do you need ChangeDetectorRef.markForCheck()?

Explanation

markForCheck marks the component and its ancestors so they are checked in the next run. The async pipe and signals do this automatically, which is why they are preferred over manual subscriptions.

Further reading

Problem with a question

Angular · Middle · question 3

Test yourself

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

Take this quiz