import {NgModule} from '@angular/core'; import {RouterModule} from '@angular/router'; import {StudentRootComponent} from './student-root.component'; import {StudentClassViewComponent} from './StudentClassView/student-class-view.component'; import {StudentCompletedViewComponent} from './StudentCompletedView/student-completed-view.component'; import {StudentSubmissionViewComponent} from './StudentSubmissionView/student-submission-view.component'; const studentRoutes = [ { path: 'sdashboard', component: StudentRootComponent }, { path: 'class-view', component: StudentClassViewComponent }, { path: 'completed-view', component: StudentCompletedViewComponent }, { path: 'submission-view', component: StudentSubmissionViewComponent }, ]; @NgModule({ imports: [ RouterModule.forChild(studentRoutes) ], exports: [ RouterModule ] }) export class StudentRoutesModule { }