import 'reflect-metadata' ; import '../polyfills' ; import { BrowserModule } from '@angular/platform-browser' ; import { NgModule } from '@angular/core' ; import { FormsModule } from '@angular/forms' ; import { HttpClientModule , HttpClient } from '@angular/common/http' ; import { CoreModule } from './core/core.module' ; import { SharedModule } from './shared/shared.module' ; import { AppRoutingModule } from './app-routing.module' ; import { TranslateModule , TranslateLoader } from '@ngx-translate/core' ; import { TranslateHttpLoader } from '@ngx-translate/http-loader' ; import { HomeModule } from './home/home.module' ; import { AppComponent } from './app.component' ; import { ProgressComponent } from './progress/progress.component' ; export function HttpLoaderFactory ( http ) { return new TranslateHttpLoader ( http , './assets/i18n/' , '.json' ) ; } @ NgModule ( { declarations : [ AppComponent , ProgressComponent ] , imports : [ BrowserModule , FormsModule , HttpClientModule , CoreModule , SharedModule , HomeModule , AppRoutingModule , TranslateModule . forRoot ( { loader : { provide : TranslateLoader , useFactory : HttpLoaderFactory , deps : [ HttpClient ] } } ) ] , providers : [ ] , bootstrap : [ AppComponent ] } ) export class AppModule { }