@@ -19,7 +19,7 @@ If you use the CLI to generate an app, the default `AppModule` is as follows:
19
19
import { BrowserModule } from ' @angular/platform-browser' ;
20
20
import { NgModule } from ' @angular/core' ;
21
21
import { FormsModule } from ' @angular/forms' ;
22
- import { HttpModule } from ' @angular/http' ;
22
+ import { HttpClientModule } from ' @angular/common /http' ;
23
23
24
24
import { AppComponent } from ' ./app.component' ;
25
25
@@ -31,7 +31,7 @@ import { AppComponent } from './app.component';
31
31
imports: [
32
32
BrowserModule ,
33
33
FormsModule ,
34
- HttpModule
34
+ HttpClientModule
35
35
],
36
36
providers: [],
37
37
bootstrap: [AppComponent ]
@@ -138,7 +138,7 @@ It tells Angular about other NgModules that this particular module needs to func
138
138
This list of modules are those that export components, directives, or pipes
139
139
that the component templates in this module reference. In this case, the component is
140
140
` AppComponent ` , which references components, directives, or pipes in ` BrowserModule ` ,
141
- ` FormsModule ` , or ` HttpModule ` .
141
+ ` FormsModule ` , or ` HttpClientModule ` .
142
142
A component template can reference another component, directive,
143
143
or pipe when the referenced class is declared in this module or
144
144
the class was imported from another module.
0 commit comments