angular cli generate component in folder code example
Example 1: angular generate component without spec
--skipTests=true|false. When true, does not create "spec. ts" test files for the new component / directive / class / guard
Example 2: angular cli generate component
ng g c componentName
Example 3: generate component angular without folder
Angular:
Add --flat flag.
ng g c yourcomponentname --flat
--flat=true|false
When true, creates the new files at the top level of the current project.
Default: false
Example 4: generate new component angular
ng generate [options]
Example 5: ng generate component
ng g component [component name]