Skip to content

Commit 8775a79

Browse files
committed
fix(generators): web adjustment for routing
1 parent ba26b67 commit 8775a79

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/app.web/index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ function adjustAppFiles(options: ApplicationOptions, tree: Tree) {
102102
? `<router-outlet></router-outlet>`
103103
: appCmpHtml()
104104
);
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+
}
105112
tree.overwrite(
106113
`/apps/${options.name}/src/app/app.component.ts`,
107114
appCmpContent()

0 commit comments

Comments
 (0)