ng generate angular code example
Example 1: angular generate component
ng g component componentname
Example 2: ng cli generate component
ng g c componentName
Example 3: ng generate
ng g(generate) c(component) Components/<name>
Example 4: ng generate
ng g(generate) s(service) Services/<name>
Example 5: auto generate component angular
ng g component [directory-where-you-want-to-save-the-component]/[new-component-name]
ng generate component [directory-where-you-want-to-save-the-component]/[new-component-name]