Skip to content
masterclass Buddy

Angular · Concept

Standalone components

Standalone components can be used without declaring them in an NgModule. They list their template dependencies in imports and can be imported directly by other standalone components or NgModules.

Last updated

Syntax

@Component({ standalone: true, imports: [], selector: 'app-example', template: `...` })
export class ExampleComponent {}

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Component
  • Directive
  • Pipe
  • NgModule
  • ng generate @angular/core:standalone

Source: Standalone components • Angular. Checked 2026-11-03.