Change detection is hoe Angular de DOM in sync houdt met component data — na elke potentieel state-veranderende event controleert het componenten en werkt het de view bij waar data is gewijzigd. Standaard is deze controle breed; OnPush beperkt het voor performance.
Hoe standaard change detection werkt
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.
Standaard ( strategy) controleert Angular opnieuw bij elke event — correct, maar potentieel verspillend in grote bomen.
