generate html and ts only in angular clid code example
Example 1: angular generate component
ng g component componentname
Example 2: angular cli create component
plainsight/some-name/some-name.component.ts
ng g component componentname
plainsight/some-name/some-name.component.ts