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.
SubscribeRelated
ChangeDetectionStrategyViewEncapsulationDirectiveNgModuleType