| .. | .. |
|---|
| 7 | 7 | import {CovalentHttpModule} from '@covalent/http'; |
|---|
| 8 | 8 | import {CovalentDynamicFormsModule} from '@covalent/dynamic-forms'; |
|---|
| 9 | 9 | |
|---|
| 10 | +import { LocalStorageModule } from 'angular-2-local-storage'; |
|---|
| 11 | +import { ToastModule } from 'ng2-toastr/ng2-toastr'; |
|---|
| 12 | + |
|---|
| 10 | 13 | import { AppComponent } from './app.component'; |
|---|
| 14 | +import { UserService } from './user.service'; |
|---|
| 11 | 15 | import { PackListComponent } from './pack.list.component'; |
|---|
| 12 | 16 | import { HeroDetailComponent } from './detail.component'; |
|---|
| 17 | +import { LoginFormComponent } from './login.form.component'; |
|---|
| 13 | 18 | |
|---|
| 14 | 19 | import { appRoutes, appRoutingProviders } from './app.routes'; |
|---|
| 20 | +import { requestOptionsProvider } from './common/default.requests.options'; |
|---|
| 21 | +import { LocaleServiceModule } from './common/i18n'; |
|---|
| 15 | 22 | |
|---|
| 16 | 23 | @NgModule({ |
|---|
| 17 | 24 | imports: [ |
|---|
| 25 | + LocalStorageModule.withConfig({ |
|---|
| 26 | + prefix: 'securis', |
|---|
| 27 | + storageType: 'localStorage' |
|---|
| 28 | + }), |
|---|
| 18 | 29 | BrowserModule, |
|---|
| 19 | 30 | FormsModule, |
|---|
| 20 | | - MaterialModule.forRoot(), |
|---|
| 31 | + MaterialModule, |
|---|
| 21 | 32 | CovalentCoreModule.forRoot(), |
|---|
| 22 | 33 | CovalentHttpModule.forRoot(), |
|---|
| 23 | 34 | CovalentDynamicFormsModule.forRoot(), |
|---|
| 35 | + ToastModule.forRoot(), |
|---|
| 36 | + LocaleServiceModule, |
|---|
| 24 | 37 | appRoutes, |
|---|
| 25 | 38 | ], |
|---|
| 26 | 39 | declarations: [ |
|---|
| 27 | 40 | HeroDetailComponent, |
|---|
| 28 | 41 | PackListComponent, |
|---|
| 42 | + LoginFormComponent, |
|---|
| 29 | 43 | AppComponent |
|---|
| 30 | 44 | ], |
|---|
| 31 | 45 | bootstrap: [ AppComponent ], |
|---|
| 32 | 46 | providers: [ |
|---|
| 47 | + UserService, |
|---|
| 33 | 48 | appRoutingProviders, |
|---|
| 49 | + requestOptionsProvider, |
|---|
| 34 | 50 | ] |
|---|
| 35 | 51 | }) |
|---|
| 36 | 52 | |
|---|