import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { UpdateUserProfile } from './components/userentity/updateuserprofile.component'; import { ChangeUserPassword } from './components/userentity/changeuserpassword.component'; import { ChangeUserID } from './components/userentity/changeuserid.component'; import { UsersList } from './components/userentity/users.component'; import { UnblockUser } from './components/userentity/unblockuser.component'; import { ManageDiscountCode } from './components/managediscountcode/managediscountcode.component'; import { SubscriptionPrice } from './components/subscriptionprice/subscriptionprice.component'; import { AddUser } from './components/userentity/adduser.component'; import { SearchLicense } from './components/licenseentity/searchlicense.component'; import { AddLicense } from './components/licenseentity/addlicense.component'; import { UsageReport } from './components/reports/usagereport.component'; import { CustomerSummaryReport } from './components/reports/customersummaryreport.component'; import { ExpiringSubscriptionReport } from './components/reports/expiringsubscriptionreport.component'; import { SubscriptionReport } from './components/reports/subscriptionreport.component'; import { SubscriptionCancellationReport } from './components/reports/subscriptioncancellationreport.component'; import { NetAdSubscriptionReport } from './components/reports/netadsubscriptionreport.component'; import { SiteLicenseUsageReport } from './components/reports/sitelicenseusagereport.component'; import { DiscountCodeReport } from './components/reports/discountcodereport.component'; import { ImageExportReport } from './components/reports/imageexportreport.component'; import { EditLicenseBasicSettings } from './components/licenseentity/editlicensebasicsettings.component'; import { LicenseModestySettings } from './components/licenseentity/licensemodestysettings.component'; import { LicenseModuleSettings } from './components/licenseentity/licensemodulesettings.component'; import { SiteLicenseAccount } from './components/licenseentity/sitelicenseaccount.component'; import { UserGroup } from './components/userentity/usergroup.component'; import { licenseAgreement } from './components/licenseentity/licenseAgreement.component'; const appRoutes: Routes = [ //{ path: '', redirectTo:'updateuserprofile',pathMatch } { path: 'updateuserprofile', component: UpdateUserProfile }, { path: 'changeuserpassword', component: ChangeUserPassword }, { path: 'changeuserid', component: ChangeUserID }, { path: 'users', component: UsersList }, { path: 'managediscountcode', component: ManageDiscountCode }, { path: 'subscriptionprice', component: SubscriptionPrice }, { path: 'adduser', component: AddUser }, { path: 'unblockuser', component: UnblockUser }, { path: 'searchlicense', component: SearchLicense }, { path: 'addlicense', component: AddLicense }, { path: 'editlicense', component: AddLicense }, { path: 'usagereport', component: UsageReport }, { path: 'customersummaryreport', component: CustomerSummaryReport }, { path: 'expiringsubscriptionreport', component: ExpiringSubscriptionReport }, { path: 'subscriptionreport', component: SubscriptionReport }, { path: 'subscriptioncancellationreport', component: SubscriptionCancellationReport }, { path: 'netadsubscriptionreport', component: NetAdSubscriptionReport }, { path: 'sitelicenseusagereport', component: SiteLicenseUsageReport }, { path: 'discountcodereport', component: DiscountCodeReport }, { path: 'imageexportreport', component: ImageExportReport }, { path: 'editlicensebasicsettings', component: EditLicenseBasicSettings }, { path: 'licensemodestysettings', component: LicenseModestySettings }, { path: 'licensemodulesettings', component: LicenseModuleSettings }, { path: 'licenseAgreement', component: licenseAgreement }, { path: 'sitelicenseaccount', component: SiteLicenseAccount }, { path: 'usergroup', component: UserGroup } ]; @NgModule({ imports: [ RouterModule.forRoot(appRoutes, { enableTracing: true }) // <-- debugging purposes only ], exports: [ RouterModule ] }) export class AppRoutingModule { }