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:
parent
2fe05abbc4
commit
7bf5a43385
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue