xxxxxxxxxx
ng g c myComponent --module=mymodule.ts
xxxxxxxxxx
// add the path from excluding src to the module
// Folder structure: src/app/components/user/component-to-generate
ng g c ./app/components/user/login -m ./app/components/user/login/login.module.ts