13 lines
		
	
	
		
			271 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			271 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Component, Input } from '@angular/core';
 | |
| 
 | |
| import { Hero } from './hero';
 | |
| 
 | |
| @Component({
 | |
|   selector: 'hero-detail',
 | |
|   templateUrl: 'app/hero-detail.component.html',
 | |
|   directives: [HeroDetailComponent]
 | |
| })
 | |
| export class HeroDetailComponent {
 | |
|   @Input() hero: Hero;
 | |
| }
 |