@Input() is no longer needed in HeroDetailComponent
[examples/angular-tour-of-heroes] / src / app / hero-detail / hero-detail.component.ts
index aef0da5..d4c7289 100644 (file)
@@ -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,