projects
/
examples
/
angular-tour-of-heroes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9d9f8e
)
6: Get Data from a Server
author
Kai Moritz
<kai@juplo.de>
Sat, 16 May 2020 07:01:19 +0000
(09:01 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sat, 16 May 2020 07:11:28 +0000
(09:11 +0200)
a) Enable HTTP services
src/app/app.module.ts
patch
|
blob
|
history
diff --git
a/src/app/app.module.ts
b/src/app/app.module.ts
index
e4e6882
..
b76b39d
100644
(file)
--- a/
src/app/app.module.ts
+++ b/
src/app/app.module.ts
@@
-2,6
+2,7
@@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { FormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { FormsModule } from '@angular/forms';
+import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { HeroesComponent } from './heroes/heroes.component';
import { AppComponent } from './app.component';
import { HeroesComponent } from './heroes/heroes.component';
@@
-20,7
+21,8
@@
import { DashboardComponent } from './dashboard/dashboard.component';
imports: [
BrowserModule,
AppRoutingModule,
imports: [
BrowserModule,
AppRoutingModule,
- FormsModule
+ FormsModule,
+ HttpClientModule
],
providers: [],
bootstrap: [AppComponent]
],
providers: [],
bootstrap: [AppComponent]