Bird
0
0

How can you bootstrap multiple standalone components in one Angular app?

hard📝 Application Q9 of 15
Angular - Standalone Components
How can you bootstrap multiple standalone components in one Angular app?
ACall bootstrapApplication() separately for each component
BList all components in a single bootstrapApplication() call
CUse bootstrapModule() with multiple components
DNest components inside one root standalone component
Step-by-Step Solution
Solution:
  1. Step 1: Understand Angular bootstrapping

    Angular boots one root component; multiple components must be nested inside it.
  2. Step 2: Evaluate options

    Calling bootstrapApplication multiple times is invalid; nesting components inside one root is correct.
  3. Final Answer:

    Nest components inside one root standalone component -> Option D
  4. Quick Check:

    One root component nests others for multiple standalone components [OK]
Quick Trick: Nest components inside one root for multiple standalone bootstraps [OK]
Common Mistakes:
  • Trying to bootstrap multiple components separately
  • Passing multiple components to bootstrapApplication
  • Using bootstrapModule for standalone components

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes