From 45572edb5f831a6e05185eb1d45e255c8d6666fd Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 2 May 2020 09:23:05 +0200 Subject: [PATCH] 1: The Hero Editor e) Edit the hero + AppModule --- src/app/app.module.ts | 4 +++- src/app/heroes/heroes.component.html | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 40ad7e6..bc5d602 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,5 +1,6 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; +import { FormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; import { HeroesComponent } from './heroes/heroes.component'; @@ -10,7 +11,8 @@ import { HeroesComponent } from './heroes/heroes.component'; HeroesComponent ], imports: [ - BrowserModule + BrowserModule, + FormsModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/heroes/heroes.component.html b/src/app/heroes/heroes.component.html index 822465e..eb1a9a9 100644 --- a/src/app/heroes/heroes.component.html +++ b/src/app/heroes/heroes.component.html @@ -1,3 +1,6 @@

{{hero.name | uppercase}} Details

id: {{hero.id}}
-
name: {{hero.name}}
+
+ + +
-- 2.20.1