import { Application } from './app.component' ; import { NgModule , ErrorHandler } from '@angular/core' ; import { Storage } from '@ionic/storage' ; import { IonicApp , IonicModule , IonicErrorHandler } from 'ionic-angular' ; import { Components } from '../components' ; import { Providers } from '../providers' ; const COMPONENTS = [ Application , ... Components ] ; const PROVIDERS = [ { provide : ErrorHandler , useClass : IonicErrorHandler } , Storage , ... Providers ] ; @ NgModule ( { declarations : COMPONENTS , entryComponents : COMPONENTS , imports : [ IonicModule . forRoot ( Application ) ] , bootstrap : [ IonicApp ] , providers : PROVIDERS } ) export class AppModule { }