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 { InvigilateFinanceContainer } from './container/invigilate-finance/invigilate-finance.container';
import { InvigilateFinanceRouter } from './router/invigilate-finance-router';
import { InvigilateFinanceSearchComponent } from './presenter/search/invigilate-finance-search/invigilate-finance-search.component';
import { InvigilateFinanceListComponent } from './presenter/list/invigilate-finance-list/invigilate-finance-list.component';
import { InvigilateFinanceFormComponent } from './presenter/form/invigilate-finance-form/invigilate-finance-form.component';
import { InvigilateFinanceFormArrayComponent } from './presenter/array-form/invigilate-finance-form-array/invigilate-finance-form-array.component';

const routes : Routes =[
    {
        path:'',
        component: InvigilateFinanceRouter,
        children:[
            {
                path:'',
                component: InvigilateFinanceContainer
            },
            {
                path:'edit/:id',
                component: InvigilateFinanceFormComponent
            },
            {
                path:'add',
                component: InvigilateFinanceFormComponent
            },
        ]
    }
]

@NgModule({
    declarations: [
        InvigilateFinanceContainer,
        InvigilateFinanceRouter,
        InvigilateFinanceSearchComponent,
        InvigilateFinanceListComponent,
        InvigilateFinanceFormComponent,
        InvigilateFinanceFormArrayComponent
],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes)
    ]
})
export class InvigilateFinanceModule { }
