From e86f3d9a49afcdabd18d7319a29b0c4fbe05a8dc Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 24 Jul 2018 16:28:46 +0200 Subject: [PATCH] docs: refactor feature modules example (#25069) PR Close #25069 --- aio/content/examples/feature-modules/src/app/app.module.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aio/content/examples/feature-modules/src/app/app.module.ts b/aio/content/examples/feature-modules/src/app/app.module.ts index 503d6a46a1..dd55e2ea04 100644 --- a/aio/content/examples/feature-modules/src/app/app.module.ts +++ b/aio/content/examples/feature-modules/src/app/app.module.ts @@ -1,15 +1,14 @@ // #docplaster // #docregion app-module -import { BrowserModule } from '@angular/platform-browser'; +import { HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { HttpModule } from '@angular/http'; +import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; // import the feature module here so you can add it to the imports array below import { CustomerDashboardModule } from './customer-dashboard/customer-dashboard.module'; - @NgModule({ declarations: [ AppComponent @@ -17,7 +16,7 @@ import { CustomerDashboardModule } from './customer-dashboard/customer-dashboard imports: [ BrowserModule, FormsModule, - HttpModule, + HttpClientModule, CustomerDashboardModule // add the feature module here ], providers: [],