import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { ReactiveFormsModule } from '@angular/forms';

// Shared components
import { SharedModule } from '../../shared/shared.module';

// Module components
import { SupportTestComponent } from './support-test.component';
import { SupportDiagnosticComponent } from './support-diagnostic.component';

// Services
import { SupportService } from './services/support.service';

// Routes du module Support
const routes: Routes = [
  { path: 'test', component: SupportTestComponent },
  { path: 'diagnostic', component: SupportDiagnosticComponent },
  { path: '', redirectTo: 'test', pathMatch: 'full' }
];

@NgModule({
  declarations: [
    SupportTestComponent,
    SupportDiagnosticComponent
  ],
  imports: [
    CommonModule,
    ReactiveFormsModule,
    RouterModule.forChild(routes),
    SharedModule
  ],
  providers: [
    SupportService
  ]
})
export class SupportModule { }


