import { HttpClient , HttpClientModule } from '@angular/common/http' ; import { ErrorHandler , NgModule } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { AppVersion } from '@ionic-native/app-version' ; import { Clipboard } from '@ionic-native/clipboard' ; import { Globalization } from '@ionic-native/globalization' ; import { InAppBrowser } from '@ionic-native/in-app-browser' ; import { LocalNotifications } from '@ionic-native/local-notifications' ; import { FingerprintAIO } from '@ionic-native/fingerprint-aio' ; import { QRScanner } from '@ionic-native/qr-scanner' ; import { SocialSharing } from '@ionic-native/social-sharing' ; import { SplashScreen } from '@ionic-native/splash-screen' ; import { StatusBar } from '@ionic-native/status-bar' ; import { Keyboard } from '@ionic-native/keyboard' ; import { IonicStorageModule } from '@ionic/storage' ; import { TranslateLoader , TranslateModule } from '@ngx-translate/core' ; import { TranslateHttpLoader } from '@ngx-translate/http-loader' ; import { IonicApp , IonicErrorHandler , IonicModule } from 'ionic-angular' ; import { Wallet } from '../providers/providers' ; import { MyApp } from './app.component' ; export function createTranslateLoader ( http ) { return new TranslateHttpLoader ( http , './assets/i18n/' , '.json' ) ; } @ NgModule ( { declarations : [ MyApp , ] , imports : [ BrowserModule , HttpClientModule , TranslateModule . forRoot ( { loader : { provide : TranslateLoader , useFactory : ( createTranslateLoader ) , deps : [ HttpClient ] } } ) , IonicModule . forRoot ( MyApp , { scrollAssist : false , autoFocusAssist : false } ) , IonicStorageModule . forRoot ( ) , ] , bootstrap : [ IonicApp ] , entryComponents : [ MyApp , ] , providers : [ Wallet , AppVersion , Clipboard , Globalization , InAppBrowser , FingerprintAIO , Keyboard , LocalNotifications , QRScanner , SocialSharing , SplashScreen , StatusBar , { provide : ErrorHandler , useClass : IonicErrorHandler } ] } ) export class AppModule { }