Newly created component not being added to submodule #13714
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Not sureDescription
Expected behaviour:
When a new component is generated using
ng g c someModule/newComponent
, it should be added to sub module.Actual behaviour:
Newly generated component is added to root module instead of in sub module.
Scenario:
If i have a submodule called DeleteModule
app ===> delete ===> delete.module.ts
and if generate a component using
ng g c delete/newComponent
. the newly generated components is added to DeleteModule. However if my DeleteModule's structure isapp => FeatureModule ===> delete ===> delete.module.ts
and i try to generate new component using
ng g c FeatureModule/delete/someComponent
, thee newly generated component is added to root module instead of in sub module.🔬 Minimal Reproduction
ng g m FeatureModule/delete
.ng g c FeatureModule/delete/newComponent
.🔥 Exception or Error
None
🌍 Your Environment
Anything else relevant?
None
The text was updated successfully, but these errors were encountered: