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.
43 lines
948 B
TypeScript
43 lines
948 B
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 { TimeCardPage } from './time-card.page';
|
|
import { TimeCardDetailsComponent } from './time-card-details/time-card-details.component';
|
|
import { HomeComponent } from './home/home.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: TimeCardPage,
|
|
children: [
|
|
{
|
|
path: 'home',
|
|
component: HomeComponent
|
|
},
|
|
{
|
|
path: 'time-card-details',
|
|
component: TimeCardDetailsComponent
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
FormsModule,
|
|
IonicModule,
|
|
RouterModule.forChild(routes)
|
|
],
|
|
declarations: [
|
|
TimeCardPage,
|
|
HomeComponent,
|
|
TimeCardDetailsComponent
|
|
]
|
|
})
|
|
export class TimeCardPageModule {}
|