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 { OffersdiscountPage } from './offersdiscount.page';
import { HomeComponent } from './home/home.component';
import { OfferDetailsComponent } from './offer-details/offer-details.component';
import { HmgCommonModule } from '../hmg-common/hmg-common.module';
import { OfferDiscountService } from './services/service';


const routes: Routes = [
  {
    path: '',
    component: OffersdiscountPage,
    children: [
      {
        path: 'home',
        component: HomeComponent
      },
      {
        path: 'offer-details',
        component: OfferDetailsComponent
      },
    ],
  }
];



@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    HmgCommonModule,
    RouterModule.forChild(routes)
  ],
  declarations: [OffersdiscountPage, HomeComponent, OfferDetailsComponent],
  providers: [OfferDiscountService]
})
export class OffersdiscountPageModule { }
