Skip to content

Commit 4d5167e

Browse files
danielsoglIgorMinar
authored andcommitted
docs: update bootstrapping and entry component guide to use httpclient (angular#25178)
PR Close angular#25178
1 parent efc6684 commit 4d5167e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aio/content/guide/bootstrapping.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you use the CLI to generate an app, the default `AppModule` is as follows:
1919
import { BrowserModule } from '@angular/platform-browser';
2020
import { NgModule } from '@angular/core';
2121
import { FormsModule } from '@angular/forms';
22-
import { HttpModule } from '@angular/http';
22+
import { HttpClientModule } from '@angular/common/http';
2323

2424
import { AppComponent } from './app.component';
2525

@@ -31,7 +31,7 @@ import { AppComponent } from './app.component';
3131
imports: [
3232
BrowserModule,
3333
FormsModule,
34-
HttpModule
34+
HttpClientModule
3535
],
3636
providers: [],
3737
bootstrap: [AppComponent]
@@ -138,7 +138,7 @@ It tells Angular about other NgModules that this particular module needs to func
138138
This list of modules are those that export components, directives, or pipes
139139
that the component templates in this module reference. In this case, the component is
140140
`AppComponent`, which references components, directives, or pipes in `BrowserModule`,
141-
`FormsModule`, or `HttpModule`.
141+
`FormsModule`, or `HttpClientModule`.
142142
A component template can reference another component, directive,
143143
or pipe when the referenced class is declared in this module or
144144
the class was imported from another module.

aio/content/guide/entry-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following is an example of specifying a bootstrapped component,
3636
imports: [
3737
BrowserModule,
3838
FormsModule,
39-
HttpModule,
39+
HttpClientModule,
4040
AppRoutingModule
4141
],
4242
providers: [],

0 commit comments

Comments
 (0)