Projekt

Obecné

Profil

Stáhnout (1.56 KB) Statistiky
| Větev: | Tag: | Revize:
1 230804d9 Václav Jirák
import {BrowserModule} from '@angular/platform-browser';
2
import {NgModule} from '@angular/core';
3 37412123 Václav Jirák
4 230804d9 Václav Jirák
import {AppRoutingModule} from './app-routing.module';
5
import {AppComponent} from './app.component';
6
import {MenuComponent} from './menu/menu.component';
7
import {DashboardModule} from './dashboard/dashboard.module';
8
import {HeaderComponent} from './header/header.component';
9
import {MatDialogModule, MatMenuModule} from '@angular/material';
10
import {ProfileSettingsModule} from './profile-settings/profile-settings.module';
11
import {HttpClient, HttpClientModule} from '@angular/common/http';
12
import {EmployeesModule} from './employees/employees.module';
13
import {TranslateLoader, TranslateModule} from '@ngx-translate/core';
14
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
15
import {PageNotFoundComponent} from './page-not-found/page-not-found.component';
16 78eacb99 Václav Jirák
import {CommonModule} from '@angular/common';
17 37412123 Václav Jirák
18
@NgModule({
19
  declarations: [
20 0d1b0550 Václav Jirák
    AppComponent,
21
    MenuComponent,
22 4bd9d9f6 Hung Hoang
    HeaderComponent,
23
    PageNotFoundComponent
24 37412123 Václav Jirák
  ],
25
  imports: [
26
    BrowserModule,
27 41741550 Hung Hoang
    HttpClientModule,
28 37412123 Václav Jirák
    AppRoutingModule,
29 18dbad83 Václav Jirák
    TranslateModule.forRoot({
30
      loader: {
31
        provide: TranslateLoader,
32
        useFactory: HttpLoaderFactory,
33
        deps: [HttpClient]
34
      }
35
    }),
36 37333849 Václav Jirák
    DashboardModule,
37
    MatDialogModule,
38 7c56b223 Hung Hoang
    ProfileSettingsModule,
39 230804d9 Václav Jirák
    EmployeesModule,
40 78eacb99 Václav Jirák
    MatMenuModule,
41
    CommonModule
42 37412123 Václav Jirák
  ],
43
  providers: [],
44
  bootstrap: [AppComponent]
45
})
46
export class AppModule { }
47 18dbad83 Václav Jirák
48
export function HttpLoaderFactory(http: HttpClient) {
49
  return new TranslateHttpLoader(http, 'assets/i18n/', '.json');
50
}