# The Structure of a Component

A component is a TypeScript class marked with @Component, which gives its selector, template and styles. Generate one with ng generate component, and use it in another component by adding it to that component's imports and writing its selector as a tag.

![Cheat sheet: The Structure of a Component](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/74eb9d1c581a4414ab04a3b4eff63902.webp)

- Category: Angular
- Level: Novice
- Tags: angular, Component (angular), ng generate, Selector (angular), Standalone Component
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/angular-components-the-structure-of-a-component-cheat-sheet
