Skip to main content

What are Angular lifecycle phases in change detection?

Mid Angular
Quick Answer Angular CD lifecycle phases: 1) Mark view dirty (async event fires), 2) ApplicationRef.tick() starts CD from root, 3) For each component in tree: check host bindings, run ngDoCheck, check child components recursively, 4) Update DOM for changed components. OnPush skips the subtree unless input changed. ngAfterViewChecked fires after each CD cycle where a view is checked.

Answer

Angular runs two phases:
Check phase: Verifies bindings.
Update phase: Applies DOM updates and triggers child checks.
This ensures UI consistency.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice