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 './components/shared/site-menu.component'; import {SiteFooterComponent} from './components/shared/site-footer.component'; import {LoginComponent} from './components/login.component'; import {UpdatePasswordComponent} from './components/update-password.component'; import { DashboardComponent } from './components/dashboard.component'; import { UpdateProfileComponent } from './components/update-profile.component'; import { ChangePasswordComponent } from './components/change-password.component'; import { ChangeUserIdComponent } from './components/change-user-id.component'; import { SearchLicenseComponent } from './components/search-license.component'; import { AddNewLicenseComponent } from './components/add-new-license.component'; import { SetupTestAccountComponent } from './components/setup-test-account.component'; import { ManageDiscountCodeComponent } from './components/manage-discount-code.component'; import { SubscriptionPriceComponent } from './components/subscription-price.component'; import { ListUserComponent } from './components/list-user.component'; import { AddUserComponent } from './components/add-user.component'; import { UnblockUserComponent } from './components/unblock-user.component'; import { UserGroupComponent } from './components/user-group.component'; import { UsageReportComponent } from './components/usage-report.component'; import { CustomerSummaryReportComponent } from './components/customer-summary-report.component'; import { ExpiringSubscriptionReportComponent } from './components/expiring-subscription-report.component'; import { NewSubscriptionReportComponent } from './components/new-subscription-report.component'; import { SubscriptionCancellationReportComponent } from './components/subscription-cancellation-report.component'; import { NetAdSubscriptionReportComponent } from './components/net-ad-subscription-report.component'; import { SiteLicenseUsageReportComponent } from './components/site-license-usage-report.component'; import { DiscountCodeReportComponent } from './components/discount-code-report.component'; import { ImageExportReportComponent } from './components/image-export-report.component'; import { AddBuildingLevelAccountComponent } from './components/add-building-level-account.component'; import { ViewUpdateProfileComponent } from './components/view-update-profile.component'; import { ManageModestySettingsComponent } from './components/manage-modesty-settings.component'; import { ManageModuleComponent } from './components/manage-module.component'; const appRoutes: Routes = [ { path: '', component: DashboardComponent }, { path: 'dashboard', redirectTo: '', pathMatch: 'full' }, //{ path: 'login', component: LoginComponent }, //{ path: 'login/:slug', component: LoginComponent } { path: 'update-profile', component: UpdateProfileComponent }, { path: 'change-password', component: ChangePasswordComponent }, { path: 'change-user-id', component: ChangeUserIdComponent }, { path: 'search-license', component: SearchLicenseComponent }, { path: 'add-new-license', component: AddNewLicenseComponent }, { path: 'setup-test-account', component: SetupTestAccountComponent }, { path: 'manage-discount-code', component: ManageDiscountCodeComponent }, { path: 'subscription-price', component: SubscriptionPriceComponent }, { path: 'list-user', component: ListUserComponent }, { path: 'add-user', component: AddUserComponent }, { path: 'unblock-user', component: UnblockUserComponent }, { path: 'user-group', component: UserGroupComponent }, { path: 'usage-report', component: UsageReportComponent }, { path: 'customer-summary-report', component: CustomerSummaryReportComponent }, { path: 'expiring-subscription-report', component: ExpiringSubscriptionReportComponent }, { path: 'new-subscription-report', component: NewSubscriptionReportComponent }, { path: 'subscription-cancellation-report', component: SubscriptionCancellationReportComponent }, { path: 'net-ad-subscription-report', component: NetAdSubscriptionReportComponent }, { path: 'site-license-usage-report', component: SiteLicenseUsageReportComponent }, { path: 'discount-code-report', component: DiscountCodeReportComponent }, { path: 'image-export-report', component: ImageExportReportComponent }, { path: 'add-building-level-account', component: AddBuildingLevelAccountComponent }, { path: 'view-update-profile', component: ViewUpdateProfileComponent }, { path: 'manage-modesty-settings', component: ManageModestySettingsComponent }, { path: 'manage-module', component: ManageModuleComponent } ]; @NgModule({ imports: [ BrowserModule, HttpModule, RouterModule.forRoot(appRoutes), FormsModule ], declarations: [ AppComponent, SiteMenuComponent, SiteFooterComponent, DashboardComponent, //LoginComponent, UpdatePasswordComponent, UpdateProfileComponent, ChangePasswordComponent, ChangeUserIdComponent, SearchLicenseComponent, AddNewLicenseComponent, SetupTestAccountComponent, ManageDiscountCodeComponent, SubscriptionPriceComponent, ListUserComponent, AddUserComponent, UnblockUserComponent, UserGroupComponent, UsageReportComponent, CustomerSummaryReportComponent, ExpiringSubscriptionReportComponent, NewSubscriptionReportComponent, SubscriptionCancellationReportComponent, NetAdSubscriptionReportComponent, SiteLicenseUsageReportComponent, DiscountCodeReportComponent, ImageExportReportComponent, AddBuildingLevelAccountComponent, ViewUpdateProfileComponent, ManageModestySettingsComponent, ManageModuleComponent ], bootstrap: [ AppComponent ] }) export class AppModule { }