-
Notifications
You must be signed in to change notification settings - Fork 487
/
inventory.module.ts
51 lines (49 loc) · 1.58 KB
/
inventory.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
47
48
49
50
51
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InventoryRoutingModule } from './inventory-routing.module';
import { InventoryComponent } from './inventory-table/inventory.component';
import {
NbCardModule,
NbButtonModule,
NbIconModule,
NbSpinnerModule,
NbDialogModule,
NbCheckboxModule
} from '@nebular/theme';
import { Ng2SmartTableModule } from 'ng2-smart-table';
import { TableComponentsModule } from '../../@shared/table-components/table-components.module';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { HttpClient } from '@angular/common/http';
import { ProductMutationComponent } from '../../@shared/product-mutation/product-mutation.component';
import { ProductMutationModule } from '../../@shared/product-mutation/product-mutation.module';
import { ThemeModule } from '../../@theme/theme.module';
export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
@NgModule({
declarations: [InventoryComponent],
imports: [
InventoryRoutingModule,
ThemeModule,
CommonModule,
NbCardModule,
NbButtonModule,
NbCheckboxModule,
NbIconModule,
Ng2SmartTableModule,
TableComponentsModule,
ProductMutationModule,
NbDialogModule.forChild(),
TranslateModule.forChild({
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
}
}),
NbSpinnerModule
],
entryComponents: [ProductMutationComponent]
})
export class InventoryModule {}