How does angular use the command to create a new component in a specified directory?

looked up for a long time, but couldn"t find out how to use the command to create services, components, etc., in the specified directory, and moved the directory files manually each time.
for example, I want to put the member management page in the src/content directory. I have tried to use ng g c content/membersManage , and
also tried to change the directory cd to content and then use the command ng g c membersManage . But either way, you end up generating a new file in the src/app directory.
so do you have such a command to create services or components in a specified directory? Or is my order written wrong?!
angular version 5.2

clipboard.png


app is the root component, and the subcomponents in it go all the way down to the molecular component. If you run it in app/content, you can


I have tried cd to execute ng g c membersManage in the corresponding directory. You can create component in this directory. It is speculated that the version of angular-cli is too low. You can consider upgrading the version of angular-cli


.

Link description

this should be helpful to you

Menu