docs: update docs to use HttpClientModule instead of HttpModule (#22727)

Updated most examples to use HttpClientModule instead of deprecated HttpModule

fix #19280

PR Close #22727
This commit is contained in:
Aaron Gussman
2018-03-13 01:53:27 -04:00
committed by Victor Berchet
parent b275d378df
commit b5533e0ee5
8 changed files with 17 additions and 20 deletions

View File

@ -3,7 +3,7 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
// import the feature module here so you can add it to the imports array below
@ -17,7 +17,7 @@ import { CustomerDashboardModule } from './customer-dashboard/customer-dashboard
imports: [
BrowserModule,
FormsModule,
HttpModule,
HttpClientModule,
CustomerDashboardModule // add the feature module here
],
providers: [],