ng generate module produce wrong code for specific code pattern #15923
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?
No.
Description
The
ng generate module
produce wrong code.馃敩 Minimal Reproduction
ng new demo1 --routing --style css cd demo1 ng g c test1
Add route config in
src/app/app-routing.module.ts
just like below:Then I creating an lazy-loaded module named
test
.Then the route config will turn into this. And this is wrong.
馃敟 Exception or Error
馃實 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: