Skip to main content

Role of ApplicationRef in Angular?

Mid Angular
Quick Answer ApplicationRef represents the Angular application. tick() manually runs change detection for the whole app (useful when Zone.js is disabled). attachView() adds a HostView (from ComponentRef) to the app's change detection tree. isStable Observable emits when the app has no pending async work (used for server-side rendering to know when to serialize). Rarely used directly in app code.

Answer

Manages the component tree, performs manual change detection, and supports custom bootstrapping.
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