how to create ng component with angular only ts and html files code example
Example 1: angular generate component
ng g component componentname
Example 2: ng g c
ng generate component [options]
ng g component componentname
ng generate component [options]