import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { HttpClientModule } from '@angular/common/http';
import { GoogleMaps } from '@ionic-native/google-maps';

import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { Main } from '../pages/main/main';
import { DevicesPage } from '../pages/devices/devices';
import { ConfigurationPage } from '../pages/configuration/configuration';
import { VespotServiceProvider } from '../providers/vespot-service/vespot-service';
import { ShareService } from '../services/share/share';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    Main,
    DevicesPage,
    ConfigurationPage
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    Main,
    DevicesPage,
    ConfigurationPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    GoogleMaps,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    VespotServiceProvider,
    ShareService
  ]
})
export class AppModule {}
