Bird
0
0

Which Angular function is used to start an app with a standalone component?

easy📝 Conceptual Q2 of 15
Angular - Standalone Components
Which Angular function is used to start an app with a standalone component?
AbootstrapApplication()
BbootstrapModule()
CstartApp()
DlaunchStandalone()
Step-by-Step Solution
Solution:
  1. Step 1: Identify the bootstrapping function

    Angular provides bootstrapApplication() specifically for standalone components.
  2. Step 2: Eliminate incorrect options

    bootstrapModule() is for NgModule apps; others are not Angular functions.
  3. Final Answer:

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

    Standalone bootstrap function = bootstrapApplication() [OK]
Quick Trick: Use bootstrapApplication() for standalone components [OK]
Common Mistakes:
  • Using bootstrapModule() for standalone apps
  • Assuming startApp() is Angular API
  • Confusing function names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes