Generating Component inside other folder in Angular CLI
You want to separate your components based on modules, at this situation you may need to create your component inside other folder.
Programming Blog
You want to separate your components based on modules, at this situation you may need to create your component inside other folder.