Change detection
Change detection is the process of identifying relevant differences between states or observations, often to determine what updates are needed.
Modern Angular
Angular change detection is the framework process that checks data bindings for changes and updates the rendered view accordingly.
- How it is used
- Propagates component-state changes through template bindings to render updated Angular views.
- How deep it goes
- Explains binding checks, lifecycle timing, Zone.js costs, signal behavior, and testing implications; defers the full mechanism beyond this overview.
- Examples
- Uses a click-updated `name` binding, a repeatedly called `fullName()` template function, and TestBed stub-component tests.
- What you can do after
- Diagnose/debug with it by identifying unnecessary template-function calls and triggering lifecycle-bound signal updates in tests.
Pro Angular 16
Change detection is Angular's process for detecting changes in application state and updating affected views.
- How it is used
- Reflects user interactions and data updates in HTML while framing the trade-off between conventional checks and signals.
- How deep it goes
- Explains triggering, template-expression evaluation, selective DOM updates, and redundant work; does not detail binding types.
- Examples
- Uses console-logged getters, an expensive count calculation, a mouseover-highlighted product row, and an Angular Material table.
- What you can do after
- Diagnose/debug with browser-console logs when an interaction reevaluates unaffected getters and causes slow updates.
Also covered in
- Effective Behavior-Driven DevelopmentIn early access (MEAP)
- Digital Twins in Action
What to know first
- Document Object ModelThe Document Object Model is a platform-independent programming interface that represents a document as a structured tree of nodes and provides ways to access and modify its content and structure.
- stateState is information describing the condition or configuration of a system or computation at a particular time that may influence its behavior or subsequent transitions.
Related concepts
- skippable reset patternused by · A pattern that skips a reset when the preceding scenario made no changes requiring one.
- Zone.jsuses · Zone.js is a JavaScript library that provides execution contexts for tracking and intercepting asynchronous tasks and their completion.
- ngDoCheckused by · ngDoCheck is an Angular component lifecycle method that runs during change detection to support custom checking of state changes.
- signal-based componentcontrasts with · A signal-based component is a proposed Angular component whose checking is driven by changes to its signal properties rather than Zone.js-based change detection.
Questions about change detection
What is change detection?
Change detection is the process of identifying relevant differences between states or observations, often to determine what updates are needed.
Which Manning books explain change detection?
Modern Angular and Pro Angular 16.
What should I know before learning change detection?
Manning books that teach change detection usually introduce Document Object Model and state first.
What is the difference between change detection and signal-based component?
Change detection is the process of identifying relevant differences between states or observations, often to determine what updates are needed. A signal-based component is a proposed Angular component whose checking is driven by changes to its signal properties rather than Zone.js-based change detection.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

