| .. | .. |
|---|
| 10 | 10 | import { LocalStorageModule } from 'angular-2-local-storage'; |
|---|
| 11 | 11 | import { ToastModule } from 'ng2-toastr/ng2-toastr'; |
|---|
| 12 | 12 | |
|---|
| 13 | | -import { AppComponent } from './app.component'; |
|---|
| 13 | +import { AppHomeComponent } from './app.component'; |
|---|
| 14 | 14 | import { UserService } from './user.service'; |
|---|
| 15 | +import { PacksService } from './resources/packs'; |
|---|
| 16 | +import { LicenseTypesService } from './resources/license_types'; |
|---|
| 17 | +import { OrganizationsService } from './resources/organizations'; |
|---|
| 18 | +import { ApplicationsService } from './resources/applications'; |
|---|
| 19 | +import { UsersService } from './resources/users'; |
|---|
| 20 | +import { LicensesService } from './resources/licenses'; |
|---|
| 15 | 21 | import { PackListComponent } from './pack.list.component'; |
|---|
| 16 | 22 | import { HeroDetailComponent } from './detail.component'; |
|---|
| 17 | 23 | import { LoginFormComponent } from './login.form.component'; |
|---|
| 18 | 24 | |
|---|
| 19 | 25 | import { appRoutes, appRoutingProviders } from './app.routes'; |
|---|
| 20 | | -import { requestOptionsProvider } from './common/default.requests.options'; |
|---|
| 26 | +import { requestOptionsProvider, requestBackendProvider } from './common/default.requests.options'; |
|---|
| 21 | 27 | import { LocaleServiceModule } from './common/i18n'; |
|---|
| 22 | 28 | |
|---|
| 23 | 29 | @NgModule({ |
|---|
| .. | .. |
|---|
| 33 | 39 | CovalentHttpModule.forRoot(), |
|---|
| 34 | 40 | CovalentDynamicFormsModule.forRoot(), |
|---|
| 35 | 41 | ToastModule.forRoot(), |
|---|
| 36 | | - LocaleServiceModule, |
|---|
| 42 | + LocaleServiceModule.withConfig('en'), |
|---|
| 37 | 43 | appRoutes, |
|---|
| 38 | 44 | ], |
|---|
| 39 | 45 | declarations: [ |
|---|
| 40 | 46 | HeroDetailComponent, |
|---|
| 41 | 47 | PackListComponent, |
|---|
| 42 | 48 | LoginFormComponent, |
|---|
| 43 | | - AppComponent |
|---|
| 49 | + AppHomeComponent |
|---|
| 44 | 50 | ], |
|---|
| 45 | | - bootstrap: [ AppComponent ], |
|---|
| 51 | + bootstrap: [ AppHomeComponent ], |
|---|
| 46 | 52 | providers: [ |
|---|
| 47 | 53 | UserService, |
|---|
| 54 | + PacksService, |
|---|
| 55 | + LicensesService, |
|---|
| 56 | + ApplicationsService, |
|---|
| 57 | + OrganizationsService, |
|---|
| 58 | + LicenseTypesService, |
|---|
| 59 | + UsersService, |
|---|
| 48 | 60 | appRoutingProviders, |
|---|
| 49 | 61 | requestOptionsProvider, |
|---|
| 62 | + requestBackendProvider |
|---|
| 50 | 63 | ] |
|---|
| 51 | 64 | }) |
|---|
| 52 | 65 | |
|---|