Problem Statement
Explain the purpose of the @Component decorator.
Explanation
The `@Component` decorator marks a class as a component and provides metadata: `selector` (custom HTML tag), `template`/`templateUrl` (HTML view), `styleUrls` (scoped styles), and optional providers. Angular reads this to render, style, and inject dependencies into the component.