app.routing.module.ts 881 Bytes
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { UpdateUserProfile } from './components/UpdateProfile/updateuserprofile.component';
import { ChangeUserPassword } from './components/changeuserpassword.component';
import { ChangeUserId } from './components/changeuserid.component';
//import { AuthGuard } from './authguard.service';

const appRoutes: Routes = [
  //{ path: '', redirectTo:'updateuserprofile',pathMatch  }
  { path: 'updateuserprofile', component: UpdateUserProfile },
  { path: 'changeuserpassword', component: ChangeUserPassword },
  { path: 'changeuserid', component: ChangeUserId },
];

@NgModule({
  imports: [
    RouterModule.forRoot(appRoutes, { enableTracing: true }) // <-- debugging purposes only
  ],
  exports: [
    RouterModule
  ]
})

export class AppRoutingModule { }