Bird
0
0

Why does Angular 17+ encourage bootstrapping standalone components instead of NgModules?

hard📝 Conceptual Q10 of 15
Angular - Fundamentals
Why does Angular 17+ encourage bootstrapping standalone components instead of NgModules?
ABecause NgModules are deprecated and no longer supported
BTo simplify app startup and reduce boilerplate code
CTo force developers to write all code in one component
DBecause standalone components load faster than modules
Step-by-Step Solution
Solution:
  1. Step 1: Understand Angular's design goals for standalone components

    Angular 17+ promotes standalone components to simplify app structure and reduce boilerplate.
  2. Step 2: Clarify misconceptions about NgModules

    NgModules are still supported but not required; standalone components offer simpler bootstrap.
  3. Final Answer:

    To simplify app startup and reduce boilerplate code -> Option B
  4. Quick Check:

    Standalone components simplify bootstrap and reduce boilerplate [OK]
Quick Trick: Standalone components reduce boilerplate and simplify bootstrap [OK]
Common Mistakes:
  • Thinking NgModules are deprecated
  • Believing all code must be in one component
  • Assuming standalone components always load faster

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes