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 { AcademicYearsContainer } from './container/academic-years/academic-years.container';
import { AcademicYearsRouter } from './router/academic-years-router';
import { AcademicYearsListComponent } from './presenter/list/academic-years-list/academic-years-list.component';
import { AcademicYearsSearchComponent } from './presenter/search/academic-years-search/academic-years-search.component';
import { AcademicYearsDialogComponent } from './presenter/dialog/academic-years-dialog/academic-years-dialog.component';

const routes : Routes =[
  {
    path:'',
    component: AcademicYearsRouter,
    children:[
      {
        path:'',
        component: AcademicYearsContainer
      },
    ]
  }
]

@NgModule({
  declarations: [
    AcademicYearsContainer,
    AcademicYearsRouter,
    AcademicYearsListComponent,
    AcademicYearsSearchComponent,
    AcademicYearsDialogComponent
    ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class AcademicYearsModule { }
