Angular · Junior · Question 5 of 75
How is a standalone Angular application started?
- ✓Correct answer:
bootstrapApplication(App, appConfig)inmain.ts - 2
ReactDOM.createRoot(el).render(<App />) - 3
platformBrowser().bootstrapModule(App)is the only option
Explanation
bootstrapApplication renders the root component and takes an ApplicationConfig with providers such as provideRouter(routes) and provideHttpClient(). bootstrapModule is the older NgModule-based way.