From e4c5a4495ba6ae5a30b48445f7f05df0328a6b35 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 16 May 2020 09:01:19 +0200 Subject: [PATCH] 6: Get Data from a Server a) Enable HTTP services --- src/app/app.module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] -- 2.20.1