What’s the difference between markForCheck() and detectChanges()

Question

What is the difference between ChangeDetectorRef.markForCheck() and ChangeDetectorRef.detectChanges()?
I only found information on SO as to the difference between NgZone.run(), but not between these two functions.
For answers with only a reference to the doc, please illustrate some practical scenarios to choose one over the other.

0
ajeetsinghaassak@gmail.com 3 weeks 0 Answers 24 views 0

Leave an answer

Browse
Browse