Advanced AngularLesson 32Free preview
Angular Change Detection
This lesson is part of Angular · All levels
Summary
Change detection is an Angular mechanism that updates DOMs when data changes. Angulars historically used Zone.js to detect asynchronous activity, but zoneless approaches and signals became more efficient modern options. The OnPush strategy reduces the number of checks by relying on input and signal changes.
Key points
- Change detection updates the display when the data changes
- Automatically detects asynchronous events (Zone.js)
- OnPush limits inspection to specific components
- Signals allow for a more economical zoneless approach
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.