Skip to content

Instantly share code, notes, and snippets.

@fcschmidt
Created December 4, 2018 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcschmidt/1fc36c8cfe080184581553fc5edb99f0 to your computer and use it in GitHub Desktop.
Save fcschmidt/1fc36c8cfe080184581553fc5edb99f0 to your computer and use it in GitHub Desktop.
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { NotificationsPage } from './../pages/notifications/notifications';
import { HistoryPage } from './../pages/history/history';
import { HomePage } from './../pages/home/home';
import { RegistrationPage } from './../pages/registration/registration';
import { LoginPage } from './../pages/login/login';
import { DetailsPage } from './../pages/details/details';
import { TabsPage } from './../pages/tabs/tabs';
import { SettingsPage } from './../pages/settings/settings';
import { InformationPage } from '../pages/information/information';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { RestApiProvider } from './../providers/rest-api/rest-api';
import { IonicStorageModule } from '@ionic/storage';
import { HttpClient, HttpClientModule } from '@angular/common/http';
@NgModule({
declarations: [
MyApp,
// HttpClient,
// HttpClientModule,
HomePage,
RegistrationPage,
LoginPage,
NotificationsPage,
HistoryPage,
DetailsPage,
TabsPage,
SettingsPage,
InformationPage
],
imports: [
BrowserModule,
HttpClient,
HttpClientModule,
IonicStorageModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
RegistrationPage,
LoginPage,
NotificationsPage,
HistoryPage,
DetailsPage,
TabsPage,
SettingsPage,
InformationPage
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler},
RestApiProvider
]
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment