Bootstrapping a Standalone App
Start an app with bootstrapApplication.
Bootstrapping a Standalone App
A fully standalone app starts with bootstrapApplication instead of bootstrapping a root NgModule. You hand it your root component.
The Entry Point: main.ts
The application entry file is main.ts. It calls bootstrapApplication with the root component, typically AppComponent.
import { bootstrapApplication } from '@angular/platform-browser';
import { AppComponent } from './app/app.component';
bootstrapApplication(AppComponent);All lessons in this course
- Why Standalone Components
- Creating Standalone Components
- Importing Dependencies Directly
- Bootstrapping a Standalone App