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.

Updated

Cheat sheet: The Structure of a Component
Category
Angular
Level
Novice
Tags
angular, Component (angular), ng generate, Selector (angular), Standalone Component