Skip to content

Commit

Permalink
fix(project): fixed routing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Jul 25, 2019
1 parent b461140 commit ff0df0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ const routes: Routes = [
redirectTo: 'home',
pathMatch: 'full'
},
// {
// path: 'getting-started',
// loadChildren: () => import('app/getting-started/getting-started.module').then(m => m.GettingStartedModule)
// },
{path: '**', redirectTo: ''},
{
path: 'home',
loadChildren: () => import('app/home/home.module').then(m => m.HomeModule)
},
{
path: 'getting-started',
loadChildren: () => import('app/getting-started/getting-started.module').then(m => m.GettingStartedModule)
},
];

@NgModule({
Expand Down
2 changes: 1 addition & 1 deletion src/app/home/home-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {HomeComponent} from './home.component';

@NgModule({
imports: [RouterModule.forChild([
{path: 'home', component: HomeComponent}
{path: '', component: HomeComponent}
])],
exports: [RouterModule]
})
Expand Down

0 comments on commit ff0df0c

Please sign in to comment.