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.
SubscribeRelated
ComponentDirectivePipeNgModuleng generate @angular/core:standalone