Advertisement
Guest User

app.module.ts

a guest
Jan 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { ErrorHandler, NgModule } from '@angular/core';
  3. import {IonicStorageModule} from'@ionic/storage';
  4. import { FormsModule } from '@angular/forms';
  5.  
  6. import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
  7.  
  8. import { MyApp } from './app.component';
  9. import { HomePage } from '../pages/home/home';
  10.  
  11. import { ConflictPage } from '../pages/conflict/conflict';
  12. import { StartPage } from '../pages/start/start';
  13.  
  14. import { StatusBar } from '@ionic-native/status-bar';
  15. import { SplashScreen } from '@ionic-native/splash-screen';
  16. import { DataProvider } from '../providers/data/data';
  17.  
  18. import * as firebase from 'firebase';
  19. import { AngularFireModule } from 'angularfire2';
  20. import { AngularFirestore, AngularFirestoreModule } from 'angularfire2/firestore';
  21.  
  22. export const firebaseConfig = {
  23. //For database
  24. };
  25.  
  26.  
  27.  
  28.  
  29. @NgModule({
  30. declarations: [
  31. MyApp,
  32. HomePage,
  33. ConflictPage,
  34. StartPage
  35. ],
  36. imports: [
  37. BrowserModule,
  38. IonicModule.forRoot(MyApp),
  39. IonicStorageModule.forRoot(),
  40. AngularFireModule.initializeApp(firebaseConfig),
  41. AngularFirestoreModule,
  42. FormsModule
  43. ],
  44. bootstrap: [IonicApp],
  45. entryComponents: [
  46. MyApp,
  47. HomePage,
  48. ConflictPage,
  49. StartPage
  50. ],
  51. providers: [
  52. StatusBar,
  53. SplashScreen,
  54. {provide: ErrorHandler, useClass: IonicErrorHandler},
  55. DataProvider
  56. ]
  57. })
  58. export class AppModule {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement