How to Create Angular Component in a Specific Folder?

For creating an Angular component you can use the Angular CLI command,

ng g component component-name

For creating a component inside a particular folder, you need to specify it along with the component name.

ng g component folder-name/component-name

Note : If folder-name is not present, it will be created by Angular CLI inside the src folder.