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 { FacultiesRouter } from './router/faculties-router';
import { FacultiesContainer } from './container/faculties/faculties.container';
import { FacultiesListComponent } from './presenter/list/faculties-list/faculties-list.component';
import { FacultiesSearchComponent } from './presenter/search/faculties-search/faculties-search.component';
import { FacultyDialogComponent } from './presenter/dialog/faculty-dialog/faculty-dialog.component';

const routes : Routes =[
  {
    path:'',
    component: FacultiesRouter,
    children:[
      {
        path:'',
        component: FacultiesContainer
      },
    ]
  }
]

@NgModule({
  declarations: [
    FacultiesRouter,
    FacultiesContainer,
    FacultiesListComponent,
    FacultiesSearchComponent,
    FacultyDialogComponent
    ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class FacultiesModule { }
