app.module.ts 733 B

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