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.
68 lines
1.6 KiB
TypeScript
68 lines
1.6 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { HomeComponent } from './home/home.component';
|
|
import { DetailsComponent } from './details/details.component';
|
|
import { IonicModule } from '@ionic/angular';
|
|
|
|
import { MyTeamPage } from './my-team.page';
|
|
import { HmgCommonModule } from '../hmg-common/hmg-common.module';
|
|
import { from } from 'rxjs';
|
|
import { WorklistService } from '../notification/service/worklist.service';
|
|
import { SubordinateLeaveComponent } from './subordinate-leave/subordinate-leave.component';
|
|
import { EmployeeHierarchyComponent } from './employee-hierarchy/employee-hierarchy.component';
|
|
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: MyTeamPage,
|
|
children: [{
|
|
path: 'home',
|
|
component: HomeComponent
|
|
},
|
|
{
|
|
path: 'details',
|
|
component: DetailsComponent
|
|
},
|
|
{
|
|
path: 'details-2',
|
|
component: DetailsComponent
|
|
},
|
|
{
|
|
path: 'subordinate-leave',
|
|
component: SubordinateLeaveComponent
|
|
},
|
|
{
|
|
path: 'employee-hierarchy',
|
|
component: EmployeeHierarchyComponent
|
|
},
|
|
{
|
|
path: 'employee-hierarchy-2',
|
|
component: EmployeeHierarchyComponent
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
HmgCommonModule,
|
|
CommonModule,
|
|
FormsModule,
|
|
IonicModule,
|
|
RouterModule.forChild(routes)
|
|
|
|
],
|
|
providers: [WorklistService],
|
|
declarations: [
|
|
MyTeamPage,
|
|
HomeComponent,
|
|
DetailsComponent,
|
|
SubordinateLeaveComponent,
|
|
EmployeeHierarchyComponent
|
|
]
|
|
})
|
|
export class MyTeamPageModule { }
|