a spring boot ionic simple app

app.module.ts 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { NgModule, ErrorHandler } from '@angular/core';
  2. import { BrowserModule } from '@angular/platform-browser';
  3. import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
  4. import { MyApp } from './app.component';
  5. import { AboutPage } from '../pages/about/about';
  6. import { ContactPage } from '../pages/contact/contact';
  7. import { HomePage } from '../pages/home/home';
  8. import { TabsPage } from '../pages/tabs/tabs';
  9. import { StatusBar } from '@ionic-native/status-bar';
  10. import { SplashScreen } from '@ionic-native/splash-screen';
  11. import { BeerPageModule } from '../pages/beer/beer.module';
  12. import { HttpClientModule } from '@angular/common/http';
  13. @NgModule({
  14. declarations: [
  15. MyApp,
  16. AboutPage,
  17. ContactPage,
  18. HomePage,
  19. TabsPage
  20. ],
  21. imports: [
  22. BrowserModule,
  23. HttpClientModule,
  24. IonicModule.forRoot(MyApp),
  25. BeerPageModule
  26. ],
  27. bootstrap: [IonicApp],
  28. entryComponents: [
  29. MyApp,
  30. AboutPage,
  31. ContactPage,
  32. HomePage,
  33. TabsPage
  34. ],
  35. providers: [
  36. StatusBar,
  37. SplashScreen,
  38. {provide: ErrorHandler, useClass: IonicErrorHandler}
  39. ]
  40. })
  41. export class AppModule {}