diff --git a/aio/content/guide/bootstrapping.md b/aio/content/guide/bootstrapping.md index dc5b873d29..b65fd1e31e 100644 --- a/aio/content/guide/bootstrapping.md +++ b/aio/content/guide/bootstrapping.md @@ -19,7 +19,7 @@ If you use the CLI to generate an app, the default `AppModule` is as follows: 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'; @@ -31,7 +31,7 @@ import { AppComponent } from './app.component'; imports: [ BrowserModule, FormsModule, - HttpModule + HttpClientModule ], providers: [], bootstrap: [AppComponent] @@ -138,7 +138,7 @@ It tells Angular about other NgModules that this particular module needs to func This list of modules are those that export components, directives, or pipes that the component templates in this module reference. In this case, the component is `AppComponent`, which references components, directives, or pipes in `BrowserModule`, -`FormsModule`, or `HttpModule`. +`FormsModule`, or `HttpClientModule`. A component template can reference another component, directive, or pipe when the referenced class is declared in this module or the class was imported from another module. diff --git a/aio/content/guide/entry-components.md b/aio/content/guide/entry-components.md index d57654218d..990c8ae84a 100644 --- a/aio/content/guide/entry-components.md +++ b/aio/content/guide/entry-components.md @@ -36,7 +36,7 @@ The following is an example of specifying a bootstrapped component, imports: [ BrowserModule, FormsModule, - HttpModule, + HttpClientModule, AppRoutingModule ], providers: [],