app.module.ts 828 B

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