// #docregion import { Component, Input } from '@angular/core'; import { Hero } from '../hero'; @Component({ selector: 'hero-detail', template: `

{{hero.name}}

` }) export class HeroDetailComponent { @Input() hero: Hero; }