where to run ng generate component code example
Example 1: ng cli generate component
ng g c componentName
Example 2: ng generate component
// in terminal
// add Service to (new) Component dir
ng g c Components/<componentName>
ng g c componentName
// in terminal
// add Service to (new) Component dir
ng g c Components/<componentName>