import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from './shared.module';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';

import { CandidateComponent } from '../candidate/candidate.component';
import { CandidateDashboardComponent } from '../candidate/candidate-dashboard/candidate-dashboard.component'
// import { CandidateHeaderComponent } from '../candidate/shared/candidate-header/candidate-header.component';


const routes:Routes = [
    {
        path:'candidate', 
        component: CandidateComponent,
        children: [
            {
                path: 'dashboard',
                component: CandidateDashboardComponent
            }

        ]
    }    
];
@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        SharedModule,
        ReactiveFormsModule,      
        RouterModule.forChild(routes)  
    ],
    declarations: [
        // CandidateHeaderComponent,
        CandidateDashboardComponent,
        CandidateComponent
    ]
})
export class CandiadateRoutingModule {}
