Bird
0
0

Which Angular function is used to bootstrap a standalone component in Angular 17+?

easy📝 Conceptual Q2 of 15
Angular - Fundamentals
Which Angular function is used to bootstrap a standalone component in Angular 17+?
AbootstrapModule()
BinitializeComponent()
CstartApp()
DbootstrapApplication()
Step-by-Step Solution
Solution:
  1. Step 1: Identify the new bootstrap function in Angular 17+

    Angular 17+ uses bootstrapApplication() for standalone components.
  2. Step 2: Differentiate from module bootstrap

    bootstrapModule() is for NgModules, not standalone components.
  3. Final Answer:

    bootstrapApplication() -> Option D
  4. Quick Check:

    Standalone bootstrap = bootstrapApplication() [OK]
Quick Trick: Use bootstrapApplication() for standalone components [OK]
Common Mistakes:
  • Using bootstrapModule() for standalone components
  • Confusing function names like startApp()
  • Assuming initializeComponent() is a bootstrap method

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes