Skip to content
Learn Netverks

Lesson

Step 32/36 89% through track

standalone-bootstrap

Standalone bootstrap

Last reviewed May 28, 2026 Content v20260528
Track mode
client_angular
Means
In-browser Angular TS
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Standalone bootstrap: the concepts, APIs, and habits you need before advancing in Angular.

Standalone components are the default greenfield path—NgModules are legacy knowledge for older codebases.

You will apply Standalone bootstrap in contexts like: Large Angular codebases, line-of-business apps, and teams standardized on TypeScript everywhere.

Write TypeScript with decorators, click Run—Angular 19 loads from CDN, use the Ng global and mountApp(Component) with selector app-root; printOutput feeds the terminal.

Toward the end of the track—consolidate before capstone-style review lessons.

Modern Angular apps boot with bootstrapApplication(RootComponent, { providers: [...] })—no root AppModule required. This playground’s mountApp(Component) calls the same API against selector app-root.

Providers at bootstrap

  • provideRouter(routes) — enable navigation
  • provideHttpClient() — HTTP client with interceptors
  • App-wide tokens for config, logging, or feature flags

Standalone root component

Set standalone: true on the root component and list imports (e.g. RouterOutlet, CommonModule) directly.

Important interview questions and answers

  1. Q: bootstrapApplication vs NgModule bootstrap?
    A: Standalone bootstrap registers providers and a root component without declaring an NgModule shell.
  2. Q: What does mountApp do here?
    A: Wraps bootstrapApplication so lessons render into the iframe’s <app-root>.

Self-check

  1. Which selector does the playground expect on the root component?
  2. Name two providers you would add for a routed SPA.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • bootstrapApplication?
  • Providers at boot?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump