From 69d83392a0c41cd9fa012b69efdb5f6f2a046886 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 11 May 2020 17:38:38 +0200 Subject: [PATCH] @Input() is no longer needed in HeroDetailComponent * The displayed hero is fetched throught the HeroService now! --- src/app/hero-detail/hero-detail.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/hero-detail/hero-detail.component.ts b/src/app/hero-detail/hero-detail.component.ts index aef0da5..d4c7289 100644 --- a/src/app/hero-detail/hero-detail.component.ts +++ b/src/app/hero-detail/hero-detail.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, Input } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Location } from '@angular/common'; @@ -12,7 +12,7 @@ import { Hero } from '../hero'; }) export class HeroDetailComponent implements OnInit { - @Input() hero : Hero; + hero: Hero; constructor( private route: ActivatedRoute, -- 2.20.1