app.routing.module.ts
1.01 KB
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { UpdateUserProfile } from './components/UpdateProfile/updateuserprofile.component';
import { ChangeUserPassword } from './components/ChangePassword/changeuserpassword.component';
import { ChangeUserId } from './components/changeuserid.component';
import { ManageDiscountCode } from './components/ManageDiscountCode/managediscountcode.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 },
{ path: 'managediscountcode', component: ManageDiscountCode },
];
@NgModule({
imports: [
RouterModule.forRoot(appRoutes, { enableTracing: true }) // <-- debugging purposes only
],
exports: [
RouterModule
]
})
export class AppRoutingModule { }