GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: update docs to use HttpClientModule instead of HttpModule · angular/angular@4d33477

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • aio/content
    • examples
      • bootstrapping/src/app
        • app.module.ts
      • dependency-injection-in-action/src/app
        • app.module.ts
      • feature-modules/src/app
        • app.module.ts
      • lazy-loading-ngmodules/src/app
        • app.module.ts
      • ngmodules/src/app
        • app.module.ts
      • styleguide/src/app
        • app.module.ts
    • guide
      • bootstrapping.md
      • entry-components.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎aio/content/examples/bootstrapping/src/app/app.module.ts‎

Copy file name to clipboardExpand all lines: aio/content/examples/bootstrapping/src/app/app.module.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { BrowserModule } from '@angular/platform-browser';
66
import { NgModule } from '@angular/core';
77
import { FormsModule } from '@angular/forms';
8-
import { HttpModule } from '@angular/http';
8+
import { HttpClientModule } from '@angular/common/http';
99

1010
import { AppComponent } from './app.component';
1111
// #docregion directive-import
@@ -24,7 +24,7 @@ import { ItemDirective } from './item.directive';
2424
imports: [
2525
BrowserModule,
2626
FormsModule,
27-
HttpModule
27+
HttpClientModule
2828
],
2929
providers: [],
3030
bootstrap: [AppComponent]
Collapse file

‎aio/content/examples/dependency-injection-in-action/src/app/app.module.ts‎

Copy file name to clipboardExpand all lines: aio/content/examples/dependency-injection-in-action/src/app/app.module.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion
22
import { BrowserModule } from '@angular/platform-browser';
33
import { FormsModule } from '@angular/forms';
4-
import { HttpModule } from '@angular/http';
4+
import { HttpClientModule } from '@angular/common/http';
55

66
// import { AppRoutingModule } from './app-routing.module';
77
import { LocationStrategy,
@@ -54,7 +54,7 @@ const c_components = [
5454
imports: [
5555
BrowserModule,
5656
FormsModule,
57-
HttpModule,
57+
HttpClientModule,
5858
InMemoryWebApiModule.forRoot(HeroData)
5959
// AppRoutingModule TODO: add routes
6060
],
Collapse file

‎aio/content/examples/feature-modules/src/app/app.module.ts‎

Copy file name to clipboardExpand all lines: aio/content/examples/feature-modules/src/app/app.module.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { BrowserModule } from '@angular/platform-browser';
44
import { NgModule } from '@angular/core';
55
import { FormsModule } from '@angular/forms';
6-
import { HttpModule } from '@angular/http';
6+
import { HttpClientModule } from '@angular/common/http';
77

88
import { AppComponent } from './app.component';
99
// import the feature module here so you can add it to the imports array below
@@ -17,7 +17,7 @@ import { CustomerDashboardModule } from './customer-dashboard/customer-dashboard
1717
imports: [
1818
BrowserModule,
1919
FormsModule,
20-
HttpModule,
20+
HttpClientModule,
2121
CustomerDashboardModule // add the feature module here
2222
],
2323
providers: [],
Collapse file

‎aio/content/examples/lazy-loading-ngmodules/src/app/app.module.ts‎

Copy file name to clipboardExpand all lines: aio/content/examples/lazy-loading-ngmodules/src/app/app.module.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
4-
import { HttpModule } from '@angular/http';
4+
import { HttpClientModule } from '@angular/common/http';
55
import { AppRoutingModule } from './app-routing.module';
66

77
import { AppComponent } from './app.component';
@@ -13,7 +13,7 @@ import { AppComponent } from './app.component';
1313
imports: [
1414
BrowserModule,
1515
FormsModule,
16-
HttpModule,
16+
HttpClientModule,
1717
AppRoutingModule
1818
],
1919
providers: [],
Collapse file

‎aio/content/examples/ngmodules/src/app/app.module.ts‎

Copy file name to clipboardExpand all lines: aio/content/examples/ngmodules/src/app/app.module.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
4-
import { HttpModule } from '@angular/http';
4+
import { HttpClientModule } from '@angular/common/http';
55

66
/* App Root */
77
import { AppComponent } from './app.component';
Collapse file

‎aio/content/examples/styleguide/src/app/app.module.ts‎

Copy file name to clipboardExpand all lines: aio/content/examples/styleguide/src/app/app.module.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NgModule } from '@angular/core';
2-
import { BrowserModule } from '@angular/platform-browser';
2+
import { BrowserModule } from '@angular/platform-browser';
33

4-
import { HttpModule } from '@angular/http';
4+
import { HttpClientModule } from '@angular/common/http';
55
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
66

77
import { RouterModule } from '@angular/router';
@@ -44,7 +44,7 @@ import * as s0901 from '../09-01/app/app.module';
4444
@NgModule({
4545
imports: [
4646
BrowserModule,
47-
HttpModule,
47+
HttpClientModule,
4848
InMemoryWebApiModule.forRoot(HeroData),
4949

5050
s0101.AppModule,
Collapse file

‎aio/content/guide/bootstrapping.md‎

Copy file name to clipboardExpand all lines: aio/content/guide/bootstrapping.md
+4-7Lines changed: 4 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ If you use the CLI to generate an app, the default `AppModule` is as follows:
1818
/* JavaScript imports */
1919
import { BrowserModule } from '@angular/platform-browser';
2020
import { NgModule } from '@angular/core';
21-
import { FormsModule } from '@angular/forms';
22-
import { HttpModule } from '@angular/http';
21+
2322

2423
import { AppComponent } from './app.component';
2524

@@ -29,9 +28,7 @@ import { AppComponent } from './app.component';
2928
AppComponent
3029
],
3130
imports: [
32-
BrowserModule,
33-
FormsModule,
34-
HttpModule
31+
BrowserModule
3532
],
3633
providers: [],
3734
bootstrap: [AppComponent]
@@ -137,8 +134,8 @@ It tells Angular about other NgModules that this particular module needs to func
137134

138135
This list of modules are those that export components, directives, or pipes
139136
that the component templates in this module reference. In this case, the component is
140-
`AppComponent`, which references components, directives, or pipes in `BrowserModule`,
141-
`FormsModule`, or `HttpModule`.
137+
`AppComponent`, which references components, directives, or pipes in `BrowserModule`.
138+
Other common components in the examples are `FormsModule` and `HttpClientModule`.
142139
A component template can reference another component, directive,
143140
or pipe when the referenced class is declared in this module or
144141
the class was imported from another module.
Collapse file

‎aio/content/guide/entry-components.md‎

Copy file name to clipboardExpand all lines: aio/content/guide/entry-components.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.