We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba26b67 commit 8775a79Copy full SHA for 8775a79
src/app.web/index.ts
@@ -102,6 +102,13 @@ function adjustAppFiles(options: ApplicationOptions, tree: Tree) {
102
? `<router-outlet></router-outlet>`
103
: appCmpHtml()
104
);
105
+ if (options.sample || options.routing) {
106
+ // update home route to reflect with root cmp would have been
107
+ tree.overwrite(
108
+ `/apps/${options.name}/src/app/features/home/components/home.component.html`,
109
+ appCmpHtml()
110
+ );
111
+ }
112
tree.overwrite(
113
`/apps/${options.name}/src/app/app.component.ts`,
114
appCmpContent()
0 commit comments