Skip to main content

Purpose of entryComponents in pre-Ivy Angular?

Mid Angular
Quick Answer In pre-Ivy Angular (ViewEngine), entryComponents listed components created dynamically (not via selector in templates) so the compiler would include them in the bundle. Components referenced only in template selectors were automatically included. Ivy made entryComponents obsolete - it uses a different compilation model that discovers all components. In Angular 9+, entryComponents is a no-op.

Answer

Before Ivy, Angular needed entryComponents to know which components could be created dynamically.
Ivy removed this requirement.
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