Change detection यह है कि कैसे Angular DOM को component डेटा के साथ सिंक में रखता है — किसी भी संभावित state-changing event के बाद, यह components की जांच करता है और उन जगहों पर view को अपडेट करता है जहां डेटा बदल गया है। डिफ़ॉल्ट रूप से यह जांच व्यापक है; OnPush performance के लिए इसे सीमित करता है।
डिफ़ॉल्ट change detection कैसे काम करता है
An async event fires (click, HTTP response, setTimeout) →
Zone.js notifies Angular → Angular checks the ENTIRE component tree
top-to-bottom → updates any bindings whose values changed.
डिफ़ॉल्ट रूप से ( strategy), Angular की हर event पर फिर से जांच करता है — सही है, लेकिन बड़े trees में संभवतः अनावश्यक।
