import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DepartmentRouter } from './router/department-router';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { DepartmentContainer } from './contianer/department/department.container';
import { DepartmentSearchComponent } from './presenter/search/department-search/department-search.component';
import { DepartmentListComponent } from './presenter/list/department-list/department-list.component';
import { DepartmentDialogComponent } from './presenter/dialog/department-dialog/department-dialog.component';

const routes: Routes = [
  {
    path: '',
    component: DepartmentRouter,
    children: [
      {
        path: '',
        component: DepartmentContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    DepartmentRouter,
    DepartmentContainer,
    DepartmentSearchComponent,
    DepartmentListComponent,
    DepartmentDialogComponent],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class DepartmentModule { }
