Standalone Components
Introduction
Section titled “Introduction”Standalone components (standalone: true) don’t need NgModules. They import dependencies directly.
Example
Section titled “Example”@Component({ selector: 'app-user-card', standalone: true, imports: [CommonModule, RouterModule], template: `...`})export class UserCardComponent { }Summary
Section titled “Summary”Standalone components simplify Angular development by removing NgModule boilerplate.”