| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { Component, Input } from '@angular/core'; | 
					
						
							|  |  |  | import { Hero } from '../hero'; | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'hero-detail', | 
					
						
							|  |  |  |   template: `
 | 
					
						
							|  |  |  |     <h2>{{hero.name}}</h2> | 
					
						
							|  |  |  |     <div> | 
					
						
							|  |  |  |       <ng-content></ng-content> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   `
 | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class HeroDetailComponent { | 
					
						
							|  |  |  |   @Input() hero: Hero; | 
					
						
							|  |  |  | } |