Standalone Component

noun

say it: “STAND-uh-lohn kum-POH-nent” /ˈstændəloʊn kəmˈpoʊnənt/

An Angular component that lists its own imports, with no NgModule; the default in modern Angular.

What is Standalone Component?

A standalone component lists what it needs in its own imports array, without an NgModule. It has been the default since Angular 17.

@Component({
  selector: 'app-recipe-list',
  imports: [RecipeCard, DatePipe],
  templateUrl: './recipe-list.html',
})
export class RecipeList {}

In a sentence

  • “Every component in our app is a standalone component with its own imports.”

Level: Novice · More Angular terms at this level

Updated