Use HttpClientModule

HttpModule is deprecated
This commit is contained in:
Léo Martin
2017-12-03 00:11:47 +01:00
committed by GitHub
parent f4bc5b21bc
commit 5704e2e10b

View File

@@ -4,7 +4,7 @@ import 'polyfills';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http'; import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { HomeComponent } from './components/home/home.component'; import { HomeComponent } from './components/home/home.component';
@@ -21,7 +21,7 @@ import { ElectronService } from './providers/electron.service';
imports: [ imports: [
BrowserModule, BrowserModule,
FormsModule, FormsModule,
HttpModule, HttpClientModule,
AppRoutingModule AppRoutingModule
], ],
providers: [ElectronService], providers: [ElectronService],