You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
And I want to create a new component under custom-app
From the root of the project, trying to run any of these :
ng g c my-comp -m="../custom-app/app.module.ts" or ng g c custom-app/my-comp -m="../custom-app/app.module.ts" or even ng g c /src/custom-app/my-comp -m="../custom-app/app.module.ts"
results in a component being created under the /app folder and not /custom-app.
Bug Report or Feature Request (mark with an
x
)Area
Versions
Node v8.9.0
Npm 5.6.0
Windows 10
Repro steps
Let's say I have the following structure -
And I want to create a new component under
custom-app
From the root of the project, trying to run any of these :
ng g c my-comp -m="../custom-app/app.module.ts"
or
ng g c custom-app/my-comp -m="../custom-app/app.module.ts"
or even
ng g c /src/custom-app/my-comp -m="../custom-app/app.module.ts"
results in a component being created under the
/app
folder and not/custom-app
.The log given by the failure
Desired functionality
I would expect that -
Specifying a module would create the component underneath that specific module's folder
If not, at least specifying a different path (starting from the
src
folder) will generate that component under that custom pathMention any other details that might be useful
none
The text was updated successfully, but these errors were encountered: