diff --git a/aio/content/examples/dependency-injection-in-action/src/app/app.module.ts b/aio/content/examples/dependency-injection-in-action/src/app/app.module.ts index a240e21f7c..490670a71c 100644 --- a/aio/content/examples/dependency-injection-in-action/src/app/app.module.ts +++ b/aio/content/examples/dependency-injection-in-action/src/app/app.module.ts @@ -1,7 +1,7 @@ // #docregion import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; -import { HttpModule } from '@angular/http'; +import { HttpClientModule } from '@angular/common/http'; // import { AppRoutingModule } from './app-routing.module'; import { LocationStrategy, @@ -54,7 +54,7 @@ const c_components = [ imports: [ BrowserModule, FormsModule, - HttpModule, + HttpClientModule, InMemoryWebApiModule.forRoot(HeroData) // AppRoutingModule TODO: add routes ],