From fcd9ff9b89ea960b1fb1f9191a134aaeaddb9a3b Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Thu, 10 Jun 2021 12:00:53 +0300 Subject: [PATCH] service added --- Mohem/src/app/my-team/my-team.module.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Mohem/src/app/my-team/my-team.module.ts b/Mohem/src/app/my-team/my-team.module.ts index 54b8a875..0748569b 100644 --- a/Mohem/src/app/my-team/my-team.module.ts +++ b/Mohem/src/app/my-team/my-team.module.ts @@ -8,15 +8,16 @@ import { IonicModule } from '@ionic/angular'; import { MyTeamPage } from './my-team.page'; import { HmgCommonModule } from '../hmg-common/hmg-common.module'; -import {MyRequestComponent} from './my-request/my-request.component'; -import {HRRequestComponent} from './/hr-request/hr-request.component'; +import { MyRequestComponent } from './my-request/my-request.component'; +import { HRRequestComponent } from './/hr-request/hr-request.component'; +import { WorklistService } from '../notification/service/worklist.service'; const routes: Routes = [ { path: '', component: MyTeamPage, - children:[{ + children: [{ path: 'home', component: HomeComponent }, @@ -36,8 +37,8 @@ const routes: Routes = [ path: 'hr-request', component: HRRequestComponent } - - ] + + ] } ]; @@ -49,6 +50,7 @@ const routes: Routes = [ IonicModule, RouterModule.forChild(routes) ], - declarations: [MyTeamPage,HomeComponent,DetailsComponent,MyRequestComponent,HRRequestComponent] + providers: [WorklistService], + declarations: [MyTeamPage, HomeComponent, DetailsComponent, MyRequestComponent, HRRequestComponent] }) -export class MyTeamPageModule {} +export class MyTeamPageModule { }