import 'reflect-metadata' ; import '../polyfills' ; import { BrowserModule } from '@angular/platform-browser' ; import { NgModule } from '@angular/core' ; import { HttpClientModule , HttpClient } from '@angular/common/http' ; import { AppRoutingModule } from './app-routing.module' ; import { WebviewDirective } from './directives/webview.directive' ; import { TranslateModule , TranslateLoader } from '@ngx-translate/core' ; import { TranslateHttpLoader } from '@ngx-translate/http-loader' ; import { ElectronService } from './providers/electron.service' ; import { AppComponent } from './app.component' ; import { LocalDownloadComponent } from './components/local-download/local-download.component' ; import { NgbModule } from '@ng-bootstrap/ng-bootstrap' ; import { AngularFontAwesomeModule } from 'angular-font-awesome' ; import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component' ; import { NavbarComponent } from './components/navbar/navbar.component' ; import { PlayerComponent } from './components/player/player.component' ; import { SettingsComponent } from './components/settings/settings.component' ; import { SearchComponent } from './components/search/search.component' ; import { AboutComponent } from './components/about/about.component' ; import { FormsModule } from '@angular/forms' ; import { MessagesComponent } from './components/messages/messages.component' ; import { FAQComponent } from './components/faq/faq.component' ; import { SpinnerComponent } from './components/spinner/spinner.component' ; export function HttpLoaderFactory ( http ) { return new TranslateHttpLoader ( http , './assets/i18n/' , '.json' ) ; } @ NgModule ( { declarations : [ AppComponent , LocalDownloadComponent , PageNotFoundComponent , WebviewDirective , NavbarComponent , PlayerComponent , SettingsComponent , SearchComponent , AboutComponent , MessagesComponent , FAQComponent , SpinnerComponent , ] , imports : [ NgbModule , BrowserModule , AppRoutingModule , AngularFontAwesomeModule , HttpClientModule , AppRoutingModule , FormsModule , TranslateModule . forRoot ( { loader : { provide : TranslateLoader , useFactory : ( HttpLoaderFactory ) , deps : [ HttpClient ] } } ) ] , providers : [ ElectronService ] , bootstrap : [ AppComponent ] } ) export class AppModule { }