0Pricing
Angular Academy · Lesson

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

  1. Why Standalone Components
  2. Creating Standalone Components
  3. Importing Dependencies Directly
  4. Bootstrapping a Standalone App
← Back to Angular Academy