import { NgModule , NO_ERRORS_SCHEMA } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { RouteReuseStrategy } from '@angular/router' ; import { IonicModule , IonicRouteStrategy } from '@ionic/angular' ; import { AppComponent } from './app.component' ; import { AppRoutingModule } from './app-routing.module' ; import { IonicStorageModule } from '@ionic/storage' ; import { SharedModule } from './shared/shared.module' ; import { TranslateLoader , TranslateModule } from '@ngx-translate/core' ; import { TranslateHttpLoader } from '@ngx-translate/http-loader' ; import { HttpClient , HttpClientModule } from '@angular/common/http' ; export function HttpLoaderFactory ( http ) { return new TranslateHttpLoader ( http , './assets/i18n/' , '.json' ) ; } @ NgModule ( { declarations : [ AppComponent ] , entryComponents : [ ] , imports : [ BrowserModule , HttpClientModule , TranslateModule . forRoot ( { loader : { provide : TranslateLoader , useFactory : HttpLoaderFactory , deps : [ HttpClient ] } } ) , IonicModule . forRoot ( { mode : 'md' , menuIcon : 'beanconqueror-menu' , swipeBackEnabled : true , animated : true , rippleEffect : false , } ) , IonicStorageModule . forRoot ( { name : '__baristaDB' , driverOrder : [ 'indexeddb' , 'sqlite' , 'websql' ] } ) , AppRoutingModule , SharedModule , ] , providers : [ { provide : RouteReuseStrategy , useClass : IonicRouteStrategy } , ] , bootstrap : [ AppComponent ] , exports : [ ] , schemas : [ NO_ERRORS_SCHEMA ] } ) export class AppModule { }