Last active
September 24, 2018 14:28
-
-
Save samarthagarwal/24c89cbf50e5fcacbecdfb54ca00f696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { RouterModule, RouteReuseStrategy, Routes } from '@angular/router'; | |
import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; | |
import { SplashScreen } from '@ionic-native/splash-screen/ngx'; | |
import { StatusBar } from '@ionic-native/status-bar/ngx'; | |
import { AppComponent } from './app.component'; | |
import { AppRoutingModule } from './app-routing.module'; | |
\!h import { HttpClientModule } from '@angular/common/http'; // Added this | |
@NgModule({ | |
declarations: [AppComponent], | |
entryComponents: [], | |
\!h imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule, HttpClientModule], // Added HttpClientModule to the array | |
providers: [ | |
StatusBar, | |
SplashScreen, | |
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy } | |
], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment