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

import { IonicModule } from '@ionic/angular';

import { TerminationPage } from './termination.page';
import { TerminationFormComponent } from './termination-form/termination-form.component';
import { TerminationServiceService } from './service/termination-service.service';
import { HmgCommonModule } from '../hmg-common/hmg-common.module';
import { ConfirmTerminationComponent } from './confirm-termination/confirm-termination.component';
import { SubmitAddressModalComponent } from '../profile/submit-eit-modal/submit-address-modal.component';


const routes: Routes = [
  {
    path: '',
    component: TerminationPage,
    children: [
      {
        path: 'termination-form',
        component: TerminationFormComponent
      },
      {
        path: 'confirm-termination',
        component: ConfirmTerminationComponent
      },

    ],
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes),
    HmgCommonModule
  ],
  declarations: [TerminationPage, TerminationFormComponent, ConfirmTerminationComponent],
  providers: [TerminationServiceService],
  entryComponents: [SubmitAddressModalComponent]
})
export class TerminationPageModule { }
