app.module.ts 916 B

123456789101112131415161718192021222324252627282930313233343536
  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 { MyApp } from './app.component';
  7. import { HomePage } from '../pages/home/home';
  8. import { SearchPage } from '../pages/search/search';
  9. import { SettingsPage } from '../pages/settings/settings';
  10. @NgModule({
  11. declarations: [
  12. MyApp,
  13. HomePage,
  14. SearchPage,
  15. SettingsPage
  16. ],
  17. imports: [
  18. BrowserModule,
  19. IonicModule.forRoot(MyApp)
  20. ],
  21. bootstrap: [IonicApp],
  22. entryComponents: [
  23. MyApp,
  24. HomePage,
  25. SearchPage,
  26. SettingsPage
  27. ],
  28. providers: [
  29. StatusBar,
  30. SplashScreen,
  31. { provide: ErrorHandler, useClass: IonicErrorHandler }
  32. ]
  33. })
  34. export class AppModule { }