import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { HmgCommonModule } from '../hmg-common/hmg-common.module';
import { IonicModule } from '@ionic/angular';
import { HomePage } from './home.page';
import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx';
import { WorklistMainService } from '../notification/service/work-list.main.service';
import { AttendanceOptionsComponent } from './attendance-options/attendance-options.component';
import { NfcModalComponent } from './nfc-modal/nfc-modal.component';
import { WifiModalComponent } from './wifi-model/wifi-modal.component';
const routes: Routes = [
  {
    path: '',
    component: HomePage,
  },
  {
    path:'attendance-option',
    component:AttendanceOptionsComponent
  }
];


@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    HmgCommonModule,
    RouterModule.forChild(routes)
  ],
  declarations: [
    HomePage,
    NfcModalComponent,
    WifiModalComponent
  ],
  providers: [
    BarcodeScanner,
    WorklistMainService
  ],
  entryComponents: [
    NfcModalComponent,
    WifiModalComponent
  ]
})
export class HomePageModule { }
