From: Kai Moritz Date: Sat, 16 May 2020 07:01:19 +0000 (+0200) Subject: 6: Get Data from a Server X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e4c5a4495ba6ae5a30b48445f7f05df0328a6b35;p=examples%2Fangular-tour-of-heroes 6: Get Data from a Server a) Enable HTTP services --- diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e4e6882..b76b39d 100644 --- 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 { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; import { HeroesComponent } from './heroes/heroes.component'; @@ -20,7 +21,8 @@ import { DashboardComponent } from './dashboard/dashboard.component'; imports: [ BrowserModule, AppRoutingModule, - FormsModule + FormsModule, + HttpClientModule ], providers: [], bootstrap: [AppComponent]