admin.module.ts 787 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from '../shared/shared.module';
import { AdminOverviewComponent } from './admin-overview/admin-overview.component';
import { QuizAdminComponent } from './quiz-admin/quiz-admin.component';
import { UserAdminComponent } from './user-admin/user-admin.component';

const routes: Routes = [
  {
    path: 'user',
    component: UserAdminComponent,
  }, {
    path: 'quiz',
    component: QuizAdminComponent,
  }, {
    path: '',
    component: AdminOverviewComponent,
  },
];

@NgModule({
  declarations: [UserAdminComponent, QuizAdminComponent, AdminOverviewComponent],
  imports: [
    SharedModule, RouterModule.forChild(routes),
  ],
})
export class AdminModule {
}