| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { Component, Input } from '@angular/core'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import { Hero } from './hero'; | 
					
						
							| 
									
										
										
										
											2016-04-05 09:27:10 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'hero-app-main', | 
					
						
							|  |  |  |   template: `
 | 
					
						
							|  |  |  |     <quest-summary></quest-summary> | 
					
						
							|  |  |  |     <hero-details [hero]=hero [class.active]=hero.active> | 
					
						
							|  |  |  |       <hero-controls [hero]=hero></hero-controls> | 
					
						
							|  |  |  |     </hero-details> | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   `
 | 
					
						
							| 
									
										
										
										
											2016-04-05 09:27:10 +03:00
										 |  |  | }) | 
					
						
							|  |  |  | export class HeroAppMainComponent { | 
					
						
							|  |  |  |   @Input() hero: Hero; | 
					
						
							|  |  |  | } |