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.
42 lines
946 B
TypeScript
42 lines
946 B
TypeScript
|
5 years ago
|
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';
|
||
|
|
|
||
|
|
|
||
|
|
const routes: Routes = [
|
||
|
|
{
|
||
|
|
path: '',
|
||
|
|
component: OffersdiscountPage,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
path: 'home',
|
||
|
|
component: HomeComponent
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'offer-details',
|
||
|
|
component: OfferDetailsComponent
|
||
|
|
},
|
||
|
|
],
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [
|
||
|
|
CommonModule,
|
||
|
|
FormsModule,
|
||
|
|
IonicModule,
|
||
|
|
RouterModule.forChild(routes)
|
||
|
|
],
|
||
|
|
declarations: [OffersdiscountPage, HomeComponent, OfferDetailsComponent]
|
||
|
|
})
|
||
|
|
export class OffersdiscountPageModule { }
|