If you have Angular project with non-standard directory structure, for example:
server
js
models
...
client
app
components
shared
...
You can still use Angular CLI generator to generate component (and other) in the right folder, you need to provide --path parameter.
ng g c shared/map-browser app.config --path=client/app --dry-run