import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Routes, RouterModule } from '@angular/router'; import { HmgCommonModule } from '../hmg-common/hmg-common.module'; import { IonicModule } from '@ionic/angular'; import { NgxChartsModule } from '@swimlane/ngx-charts'; import { ProfilePage } from './profile.page'; import { HomeComponent } from './home/home.component'; import {EditProfileComponent} from './edit-profile/edit-profile.component'; import {ProfileImageComponent} from './profile-image/profile-image.component' import {PerformanceEvaluationComponent} from './performance-evaluation/performance-evaluation.component' import { from } from 'rxjs'; const routes: Routes = [ { path: '', component: ProfilePage, children: [ { path: 'home', component: HomeComponent } ], }, { path: '', component: ProfilePage, children: [ { path: 'profileImg', component: ProfileImageComponent } ], }, { path: '', component: ProfilePage, children: [ { path: 'editprofile', component: EditProfileComponent } ], }, { path: '', component: ProfilePage, children: [ { path: 'performanceevaluation', component: PerformanceEvaluationComponent } ], }, ]; @NgModule({ imports: [ CommonModule, FormsModule, IonicModule, HmgCommonModule, NgxChartsModule, RouterModule.forChild(routes) ], declarations: [ProfilePage , HomeComponent,ProfileImageComponent,EditProfileComponent,PerformanceEvaluationComponent] }) export class ProfilePageModule {}