1. Create a new component (component) command is ng generate the component name
Four basic documents are a component of
-
As a component style CSS file.
-
HTML file as a component template.
-
Storage component class
HeroDetailComponent
TypeScript file. -
HeroDetailComponent
Test file class.