app.module.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { ErrorHandler, NgModule } from '@angular/core';
  3. import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
  4. import { SplashScreen } from '@ionic-native/splash-screen';
  5. import { StatusBar } from '@ionic-native/status-bar';
  6. import { HttpClient, HttpClientModule } from '@angular/common/http';
  7. import { IonicStorageModule } from '@ionic/storage';
  8. import { AuthProvider } from '../providers/auth/auth';
  9. import { MyApp } from './app.component';
  10. import { HomePage } from '../pages/home/home';
  11. import { SearchPage } from '../pages/search/search';
  12. import { SettingsPage } from '../pages/settings/settings';
  13. import { LoginPage } from '../pages/login/login';
  14. import { TwitterApiProvider } from '../providers/twitter-api/twitter-api';
  15. import { FeedComponent } from '../components/feed/feed';
  16. @NgModule({
  17. declarations: [
  18. MyApp,
  19. HomePage,
  20. SearchPage,
  21. SettingsPage,
  22. LoginPage,
  23. FeedComponent
  24. ],
  25. imports: [
  26. BrowserModule,
  27. HttpClientModule,
  28. IonicModule.forRoot(MyApp),
  29. IonicStorageModule.forRoot()
  30. ],
  31. bootstrap: [IonicApp],
  32. entryComponents: [
  33. MyApp,
  34. HomePage,
  35. SearchPage,
  36. SettingsPage,
  37. LoginPage
  38. ],
  39. providers: [
  40. StatusBar,
  41. SplashScreen,
  42. HttpClient,
  43. { provide: ErrorHandler, useClass: IonicErrorHandler },
  44. AuthProvider,
  45. TwitterApiProvider
  46. ]
  47. })
  48. export class AppModule { }