Skip to content

Commit d01285e

Browse files
Replace HelpRoutingModule with a simple array of Routes
1 parent 934eddd commit d01285e

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/app/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const routes: Routes = [
3636
},
3737
{
3838
path: 'help',
39-
loadChildren: () => import('./help/help-routing.module').then((m) => m.HelpRoutingModule)
39+
loadChildren: () => import('./help/help.routes').then((m) => m.routes)
4040
},
4141
{
4242
path: 'join',
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { NgModule } from '@angular/core';
2-
import { RouterModule, Routes } from '@angular/router';
1+
import { Routes } from '@angular/router';
32
import { HelpComponent } from './help.component';
43
import { HelpHomeComponent } from './help-home/help-home.component';
54
import { GettingStartedComponent } from './faq/getting-started/getting-started.component';
65
import { TeacherFaqComponent } from './faq/teacher-faq/teacher-faq.component';
76
import { StudentFaqComponent } from './faq/student-faq/student-faq.component';
87

9-
const helpRoutes: Routes = [
8+
export const routes: Routes = [
109
{
1110
path: '',
1211
component: HelpComponent,
@@ -18,9 +17,3 @@ const helpRoutes: Routes = [
1817
]
1918
}
2019
];
21-
22-
@NgModule({
23-
imports: [RouterModule.forChild(helpRoutes)],
24-
exports: [RouterModule]
25-
})
26-
export class HelpRoutingModule {}

0 commit comments

Comments
 (0)