Skip to content

Commit beb0287

Browse files
Remove StudentVLEModule and use StudentRoutingModule instead
1 parent e16e4dd commit beb0287

3 files changed

Lines changed: 32 additions & 50 deletions

File tree

src/app/student/student-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3-
43
import { StudentComponent } from './student.component';
54
import { StudentHomeComponent } from './student-home/student-home.component';
65
import { AuthGuard } from './auth.guard';
@@ -18,7 +17,8 @@ const studentRoutes: Routes = [
1817
{ path: 'profile/edit', component: EditComponent },
1918
{
2019
path: 'unit/:unitId',
21-
loadChildren: () => import('./vle/student-vle.module').then((m) => m.StudentVLEModule)
20+
loadChildren: () =>
21+
import('./vle/student-vle-routing.module').then((m) => m.StudentVLERoutingModule)
2222
}
2323
]
2424
}

src/app/student/vle/student-vle-routing.module.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1+
import '../../../assets/wise5/lib/jquery/jquery-global';
12
import { NgModule } from '@angular/core';
23
import { RouterModule, Routes } from '@angular/router';
34
import { VLEParentComponent } from '../../../assets/wise5/vle/vle-parent/vle-parent.component';
45
import { VLEComponent } from '../../../assets/wise5/vle/vle.component';
6+
import { GenerateImageService } from '../../../assets/wise5/services/generateImageService';
7+
import { InitializeVLEService } from '../../../assets/wise5/services/initializeVLEService';
8+
import { PauseScreenService } from '../../../assets/wise5/services/pauseScreenService';
9+
import { ComponentStudentModule } from '../../../assets/wise5/components/component/component-student.module';
10+
import { ProjectService } from '../../../assets/wise5/services/projectService';
11+
import { StudentDataService } from '../../../assets/wise5/services/studentDataService';
12+
import { VLEProjectService } from '../../../assets/wise5/vle/vleProjectService';
13+
import { DataService } from '../../services/data.service';
14+
import { StudentNotificationService } from '../../../assets/wise5/services/studentNotificationService';
15+
import { NotificationService } from '../../../assets/wise5/services/notificationService';
16+
import { StudentPeerGroupService } from '../../../assets/wise5/services/studentPeerGroupService';
17+
import { PeerGroupService } from '../../../assets/wise5/services/peerGroupService';
18+
import { StudentTeacherCommonServicesModule } from '../../student-teacher-common-services.module';
519

620
const routes: Routes = [
721
{
@@ -17,7 +31,21 @@ const routes: Routes = [
1731
];
1832

1933
@NgModule({
20-
imports: [RouterModule.forChild(routes)],
21-
exports: [RouterModule]
34+
imports: [
35+
RouterModule.forChild(routes),
36+
ComponentStudentModule,
37+
StudentTeacherCommonServicesModule
38+
],
39+
providers: [
40+
GenerateImageService,
41+
InitializeVLEService,
42+
PauseScreenService,
43+
{ provide: DataService, useExisting: StudentDataService },
44+
{ provide: NotificationService, useExisting: StudentNotificationService },
45+
{ provide: PeerGroupService, useExisting: StudentPeerGroupService },
46+
{ provide: ProjectService, useExisting: VLEProjectService },
47+
StudentNotificationService,
48+
VLEProjectService
49+
]
2250
})
2351
export class StudentVLERoutingModule {}

src/app/student/vle/student-vle.module.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)