import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from 'src/app/shared/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { SettingExamContainer } from './container/setting-exam/setting-exam.container';
import { SettingExamRouter } from './router/setting-exam-router';
import { SettingExamSearchComponent } from './presenter/search/setting-exam-search/setting-exam-search.component';
import { SettingExamListComponent } from './presenter/list/setting-exam-list/setting-exam-list.component';
import { SettingExamFormComponent } from './presenter/form/setting-exam-form/setting-exam-form.component';

const routes : Routes =[
  {
    path:'',
    component: SettingExamRouter,
    children:[
      {
        path:'',
        component: SettingExamContainer
      },
      {
        path:'add',
        component: SettingExamFormComponent
      },
      {
        path:'edit/:id',
        component: SettingExamFormComponent
      },
    ]
  }
]

@NgModule({
  declarations: [
     SettingExamContainer,
     SettingExamSearchComponent,
     SettingExamRouter,
     SettingExamListComponent,
     SettingExamFormComponent
    ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class SettingExamModule { }
