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 { Storage } from '@ionic/storage'; import { IonicStorageModule } from '@ionic/storage'; import { MyApp } from './app.component'; import { HomePage } from '../pages/home/home'; import { MenuPage } from '../pages/menu/menu'; import { AttandancePage } from '../pages/attandance/attandance'; import { RegisterPage } from '../pages/register/register'; import { DeadlinesPage } from '../pages/deadlines/deadlines'; import { RemindersPage } from '../pages/reminders/reminders'; import { AddPage } from '../pages/add/add'; import { TimetablePage } from "../pages/timetable/timetable"; import { StudentroomPage } from "../pages/studentroom/studentroom"; import { LocalNotifications } from "@ionic-native/local-notifications"; import { Geolocation } from '@ionic-native/geolocation'; import{LocationPage} from '../pages/location/location'; import { CommonService } from '../pages/service/service'; import {AngularFireModule}from 'angularfire2'; import {AngularFireAuthModule}from 'angularfire2/auth'; import {AngularFireDatabaseModule}from 'angularfire2/database'; const fireC= { apiKey: "AIzaSyAfrtFfeisJ2Ngpq-v1lXxk9XNtUt-8XEM", authDomain: "breo-rasha.firebaseapp.com", databaseURL: "https://breo-rasha.firebaseio.com", projectId: "breo-rasha", storageBucket: "", messagingSenderId: "789880692645" }; @NgModule({ declarations: [ MyApp, HomePage, MenuPage, AttandancePage, RegisterPage, DeadlinesPage, RemindersPage, AddPage, TimetablePage, StudentroomPage, CommonService, LocationPage ], imports: [ BrowserModule, IonicModule.forRoot(MyApp), IonicStorageModule.forRoot(), AngularFireModule.initializeApp(fireC), AngularFireDatabaseModule, AngularFireAuthModule ], bootstrap: [IonicApp], entryComponents: [ MyApp, HomePage, MenuPage, AttandancePage, RegisterPage, DeadlinesPage, RemindersPage, AddPage, TimetablePage, StudentroomPage, CommonService, LocationPage ], providers: [ StatusBar, SplashScreen, LocalNotifications, Geolocation, {provide: ErrorHandler, useClass: IonicErrorHandler}, ] }) export class AppModule {}