Skip to content
masterclass Buddy

Angular · Decorator

Component

@Component marks a class as an Angular component and supplies metadata for its template, selector, styles, dependencies, and runtime behavior. Components are the main UI building blocks in Angular.

Last updated

Syntax

@Component({ ... })

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

Subscribe
  • ChangeDetectionStrategy
  • ViewEncapsulation
  • Directive
  • NgModule
  • Type

Source: Component • Angular. Checked 2026-11-03.