From 155d938e0422783fc7345fd618d9254320652860 Mon Sep 17 00:00:00 2001 From: Guillermo Facundo Colunga Date: Sat, 10 Feb 2018 18:53:59 +0100 Subject: [PATCH] docs: refining code of tutorial 7 routing (#22151) Removed the dead code from hero-detail.component.ts Fixes #21908 PR Close #22151 --- .../toh-pt5/src/app/hero-detail/hero-detail.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/examples/toh-pt5/src/app/hero-detail/hero-detail.component.ts b/aio/content/examples/toh-pt5/src/app/hero-detail/hero-detail.component.ts index 637ba05f66..43d1082470 100644 --- a/aio/content/examples/toh-pt5/src/app/hero-detail/hero-detail.component.ts +++ b/aio/content/examples/toh-pt5/src/app/hero-detail/hero-detail.component.ts @@ -1,6 +1,6 @@ // #docplaster // #docregion -import { Component, OnInit, Input } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; // #docregion added-imports import { ActivatedRoute } from '@angular/router'; import { Location } from '@angular/common'; @@ -17,7 +17,7 @@ import { HeroService } from '../hero.service'; styleUrls: [ './hero-detail.component.css' ] }) export class HeroDetailComponent implements OnInit { - @Input() hero: Hero; + hero: Hero; // #docregion ctor constructor(