Anil Kumar
Apr 24, 2023


What is the component in angular?

Basic Level.

Answer- Component is unit of angular. We divide app into smaller unit is component. Although component is type of directive(angular feature) which have a template with itself.

when ever we make component it create tag like html you can inject it will be ready to use it.

it have class(type script file) , style file, html file.

we may have input/output/ service injection or other way for communication, will be covered in advance