import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { RouterModule, Routes } from '@angular/router'; import {HttpModule} from '@angular/http'; import { FormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; import {SiteMenuComponent} from './shared/site-menu.component'; import {SiteFooterComponent} from './shared/site-footer.component'; import {LoginComponent} from './pages/login.component'; import {UpdatePasswordComponent} from './pages/update-password.component'; import { DashboardComponent } from './pages/dashboard.component'; import { AdminUpdateProfileComponent } from './pages/admin-update-profile.component'; import { AdminChangePasswordComponent } from './pages/admin-change-password.component'; import { AdminChangeUserIdComponent } from './pages/admin-change-user-id.component'; import { AdminSearchLicenseComponent } from './pages/admin-search-license.component'; import { AdminAddNewLicenseComponent } from './pages/admin-add-new-license.component'; import { AdminSetupTestAccountComponent } from './pages/admin-setup-test-account.component'; import { AdminManageDiscountCodeComponent } from './pages/admin-manage-discount-code.component'; import { AdminSubscriptionPriceComponent } from './pages/admin-subscription-price.component'; import { AdminListUserComponent } from './pages/admin-list-user.component'; import { AdminAddUserComponent } from './pages/admin-add-user.component'; import { AdminUnblockUserComponent } from './pages/admin-unblock-user.component'; import { AdminUserGroupComponent } from './pages/admin-user-group.component'; import { AdminUsageReportComponent } from './pages/admin-usage-report.component'; import { CustomerSummaryReportComponent } from './pages/customer-summary-report.component'; import { AdminExpiringSubscriptionReportComponent } from './pages/admin-expiring-subscription-report.component'; import { AdminNewSubscriptionReportComponent } from './pages/admin-new-subscription-report.component'; import { AdminSubscriptionCancellationReportComponent } from './pages/admin-subscription-cancellation-report.component'; import { AdminNetAdSubscriptionReportComponent } from './pages/admin-net-ad-subscription-report.component'; import { AdminSiteLicenseUsageReportComponent } from './pages/admin-site-license-usage-report.component'; import { AdminDiscountCodeReportComponent } from './pages/admin-discount-code-report.component'; import { AdminImageExportReportComponent } from './pages/admin-image-export-report.component'; import { AdminAddBuildingLevelAccountComponent } from './pages/admin-add-building-level-account.component'; import { AdminAddBuildingLevelAccount1Component } from './pages/admin-add-building-level-account1.component'; import { AdminViewUpdateProfileComponent } from './pages/admin-view-update-profile.component'; import { AdminManageModestySettingsComponent } from './pages/admin-manage-modesty-settings.component'; import { AdminManageModuleComponent } from './pages/admin-manage-module.component'; const appRoutes: Routes = [ { path: '', component: DashboardComponent }, { path: 'dashboard', redirectTo: '', pathMatch: 'full' }, //{ path: 'login', component: LoginComponent }, //{ path: 'login/:slug', component: LoginComponent } { path: 'admin-update-profile', component: AdminUpdateProfileComponent }, { path: 'admin-change-password', component: AdminChangePasswordComponent }, { path: 'admin-change-user-id', component: AdminChangeUserIdComponent }, { path: 'admin-search-license', component: AdminSearchLicenseComponent }, { path: 'admin-add-new-license', component: AdminAddNewLicenseComponent }, { path: 'admin-setup-test-account', component: AdminSetupTestAccountComponent }, { path: 'admin-manage-discount-code', component: AdminManageDiscountCodeComponent }, { path: 'admin-subscription-price', component: AdminSubscriptionPriceComponent }, { path: 'admin-list-user', component: AdminListUserComponent }, { path: 'admin-add-user', component: AdminAddUserComponent }, { path: 'admin-unblock-user', component: AdminUnblockUserComponent }, { path: 'admin-user-group', component: AdminUserGroupComponent }, { path: 'admin-usage-report', component: AdminUsageReportComponent }, { path: 'customer-summary-report', component: CustomerSummaryReportComponent }, { path: 'admin-expiring-subscription-report', component: AdminExpiringSubscriptionReportComponent }, { path: 'admin-new-subscription-report', component: AdminNewSubscriptionReportComponent }, { path: 'admin-subscription-cancellation-report', component: AdminSubscriptionCancellationReportComponent }, { path: 'admin-net-ad-subscription-report', component: AdminNetAdSubscriptionReportComponent }, { path: 'admin-site-license-usage-report', component: AdminSiteLicenseUsageReportComponent }, { path: 'admin-discount-code-report', component: AdminDiscountCodeReportComponent }, { path: 'admin-image-export-report', component: AdminImageExportReportComponent }, { path: 'admin-add-building-level-account', component: AdminAddBuildingLevelAccountComponent }, { path: 'admin-add-building-level-account1', component: AdminAddBuildingLevelAccount1Component }, { path: 'admin-view-update-profile', component: AdminViewUpdateProfileComponent }, { path: 'admin-manage-modesty-settings', component: AdminManageModestySettingsComponent }, { path: 'admin-manage-module', component: AdminManageModuleComponent } ]; @NgModule({ imports: [ BrowserModule, HttpModule, RouterModule.forRoot(appRoutes), FormsModule ], declarations: [ AppComponent, SiteMenuComponent, SiteFooterComponent, DashboardComponent, //LoginComponent, UpdatePasswordComponent, AdminUpdateProfileComponent, AdminChangePasswordComponent, AdminChangeUserIdComponent, AdminSearchLicenseComponent, AdminAddNewLicenseComponent, AdminSetupTestAccountComponent, AdminManageDiscountCodeComponent, AdminSubscriptionPriceComponent, AdminListUserComponent, AdminAddUserComponent, AdminUnblockUserComponent, AdminUserGroupComponent, AdminUsageReportComponent, CustomerSummaryReportComponent, AdminExpiringSubscriptionReportComponent, AdminNewSubscriptionReportComponent, AdminSubscriptionCancellationReportComponent, AdminNetAdSubscriptionReportComponent, AdminSiteLicenseUsageReportComponent, AdminDiscountCodeReportComponent, AdminImageExportReportComponent, AdminAddBuildingLevelAccountComponent, AdminAddBuildingLevelAccount1Component, AdminViewUpdateProfileComponent, AdminManageModestySettingsComponent, AdminManageModuleComponent ], bootstrap: [ AppComponent ] }) export class AppModule { }