component

Components

An Angular Component is an essential thing in Angular architecture. Angular Component is the main component of every Angular application. Every Angular application is composed of one or more Angular components. It's a simple TypeScript class, with HTML patterns and an associated name. The Component works in alliance with the HTML template and Typescript.

Component

The application component contained in the file.

An HTML template can receive data from the Typescript class. A Component's HTML template can include other components using its selector value. An Angular Component can have optional CSS styles attached to it and the HTML template can also access CSS styles. Let us study the AppComponent component in the application that we created earlier. The AppComponent code is as follows:

AppComponent code

AppComponent code the component in the aplication which is in the file of app.component.ts
Readingmine is platform of best editors, well explained.