HttpClientModule
This commit is contained in:
parent
ef67caff33
commit
3d8d66ffed
|
@ -3,6 +3,7 @@ import { ErrorHandler, NgModule } from '@angular/core';
|
||||||
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
|
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
|
||||||
import { SplashScreen } from '@ionic-native/splash-screen';
|
import { SplashScreen } from '@ionic-native/splash-screen';
|
||||||
import { StatusBar } from '@ionic-native/status-bar';
|
import { StatusBar } from '@ionic-native/status-bar';
|
||||||
|
import { HttpClientModule} from "@angular/common/http";
|
||||||
|
|
||||||
import { MyApp } from './app.component';
|
import { MyApp } from './app.component';
|
||||||
import { HomePage } from '../pages/home/home';
|
import { HomePage } from '../pages/home/home';
|
||||||
|
@ -26,6 +27,7 @@ import { SearchPage } from "../pages/search/search";
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
HttpClientModule,
|
||||||
IonicModule.forRoot(MyApp)
|
IonicModule.forRoot(MyApp)
|
||||||
],
|
],
|
||||||
bootstrap: [IonicApp],
|
bootstrap: [IonicApp],
|
||||||
|
|
|
@ -23,7 +23,9 @@ export class SearchPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
searchUser($user){
|
searchUser($user){
|
||||||
|
|
||||||
console.log('prout')
|
console.log('prout')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue