Skip to content

Commit

Permalink
fix(generators): web adjustment for routing
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Mar 6, 2019
1 parent ba26b67 commit 8775a79
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app.web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ function adjustAppFiles(options: ApplicationOptions, tree: Tree) {
? `<router-outlet></router-outlet>`
: appCmpHtml()
);
if (options.sample || options.routing) {
// update home route to reflect with root cmp would have been
tree.overwrite(
`/apps/${options.name}/src/app/features/home/components/home.component.html`,
appCmpHtml()
);
}
tree.overwrite(
`/apps/${options.name}/src/app/app.component.ts`,
appCmpContent()
Expand Down

0 comments on commit 8775a79

Please sign in to comment.