docs: refining code of tutorial 7 routing (#22151)

Removed the dead code from hero-detail.component.ts

Fixes #21908

PR Close #22151
This commit is contained in:
Guillermo Facundo Colunga 2018-02-10 18:53:59 +01:00 committed by Kara Erickson
parent 2fe05abbc4
commit 7bf5a43385
1 changed files with 2 additions and 2 deletions

View File

@ -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(