You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
TypeScript
52 lines
1.3 KiB
TypeScript
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';
|
|
import { FilterComponent } from './filter/filter.component';
|
|
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: OffersdiscountPage,
|
|
children: [
|
|
{
|
|
path: 'home',
|
|
component: HomeComponent
|
|
},
|
|
{
|
|
path: 'offer-details',
|
|
component: OfferDetailsComponent
|
|
},
|
|
{
|
|
path: 'filter-page',
|
|
component: FilterComponent
|
|
},
|
|
],
|
|
}
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
FormsModule,
|
|
IonicModule,
|
|
HmgCommonModule,
|
|
RouterModule.forChild(routes)
|
|
],
|
|
declarations: [OffersdiscountPage, HomeComponent, OfferDetailsComponent, FilterComponent],
|
|
entryComponents: [FilterComponent],
|
|
providers: [OfferDiscountService]
|
|
})
|
|
export class OffersdiscountPageModule { }
|