-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.module.ts
46 lines (42 loc) · 1.31 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import {NgModule} from '@angular/core'
import {BrowserModule} from '@angular/platform-browser'
import {RouterModule} from '@angular/router'
import {APP_ROUTES} from "./app.routes"
import {AppComponent} from './app.component'
import {FNB_VIEWS} from "./views/views"
import {FNB_WIDGETS} from "./widgets/widgets"
import {FNB_SERVICE_PROVIDERS} from "./services/services"
import {FNB_UTILS_PROVIDERS} from "./util/utils"
import {FNB_PIPES} from "./pipes/pipes"
import {HttpModule} from "@angular/http"
import {FormsModule} from '@angular/forms'
import {TranslateModule, TranslateLoader} from "ng2-translate"
import {Ng2BootstrapModule} from "ng2-bootstrap/ng2-bootstrap"
import {TranslateBundledLoader} from "./i18n/i18n"
const FNB_TRANSLATE_CONFIG = {
provide: TranslateLoader,
useClass: TranslateBundledLoader
};
@NgModule({
imports: [
BrowserModule,
RouterModule.forRoot(APP_ROUTES),
HttpModule,
FormsModule,
TranslateModule.forRoot(FNB_TRANSLATE_CONFIG),
Ng2BootstrapModule
],
declarations: [
AppComponent,
FNB_VIEWS,
FNB_WIDGETS,
FNB_PIPES
],
providers: [
FNB_SERVICE_PROVIDERS,
FNB_UTILS_PROVIDERS
],
bootstrap: [AppComponent]
})
export class AppModule {
}