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

import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { CommonVitaminsPage } from '../pages/common-vitamins/common-vitamins';
import { RegisterPage } from '../pages/register/register';
import { AlarmPage }from '../pages/alarm/alarm';

import { LocalNotifications } from '@ionic-native/local-notifications';



@NgModule({
  declarations: [
    MyApp,
    HomePage,
    CommonVitaminsPage,
    RegisterPage,
    AlarmPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    CommonVitaminsPage,
    RegisterPage,
    AlarmPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    LocalNotifications
  ]
})
export class AppModule {}
