Change detection એ કેવી રીતે Angular DOM ને component ડેટા સાથે સિંક રાખે છે — કોઈ પણ સંભવતઃ state-changing ઇવેન્ટ પછી, તે 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 પર દરેક ઇવેન્ટ પર re-checks કરે છે — સાચું, પણ મોટા trees માં સંભવતઃ અવ્યવહારી.
