# NgModule

The older way of grouping Angular pieces and their dependencies; replaced by standalone components.

## What is **NgModule**?

An **NgModule** is the older way of grouping components, directives and pipes and listing their dependencies. New code uses standalone components, but you will meet NgModules in older apps.

```typescript
@NgModule({
  declarations: [RecipeCard],
  imports: [CommonModule],
  exports: [RecipeCard],
})
export class RecipesModule {}
```

Level: Freelancer · [More Angular terms at this level](https://www.ask-codey.com/glossary?category=angular&level=4)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/ngmodule
