how to generate component in folder angular code example
Example 1: ng cli generate component
ng g c componentName
Example 2: 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 3: angular cli create component
plainsight/some-name/some-name.component.ts