| 
									
										
										
										
											2015-11-25 18:01:44 +01:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2015-12-11 13:18:37 -08:00
										 |  |  | import {Component, Input} from 'angular2/core'; | 
					
						
							| 
									
										
										
										
											2015-11-25 18:01:44 +01:00
										 |  |  | import {Hero} from './hero'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'hero-card', | 
					
						
							|  |  |  |   template: `
 | 
					
						
							|  |  |  |     <div> | 
					
						
							|  |  |  |       <span>Name:</span> | 
					
						
							|  |  |  |       <span>{{hero.name}}</span> | 
					
						
							|  |  |  |     </div>`
 | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class HeroCardComponent { | 
					
						
							|  |  |  |   @Input() hero: Hero; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | // #docregion
 |