| 
									
										
										
										
											2016-08-17 13:31:40 -07:00
										 |  |  | // Imports in comments cause problems when the app is executed
 | 
					
						
							|  |  |  | // (some error about 'traceur' missing). Hence this separate file
 | 
					
						
							|  |  |  | // is solely for containing the transitory state of the imports.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // #docregion added-imports
 | 
					
						
							|  |  |  | // Keep the Input import for now, we'll remove it later:
 | 
					
						
							|  |  |  | import { Component, Input, OnInit } from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2016-09-25 20:56:12 -05:00
										 |  |  | import { ActivatedRoute, Params }   from '@angular/router'; | 
					
						
							|  |  |  | import { Location }                 from '@angular/common'; | 
					
						
							| 
									
										
										
										
											2016-08-17 13:31:40 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | import { HeroService } from './hero.service'; | 
					
						
							|  |  |  | // #enddocregion added-imports
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Bogus code below this point. It is only here to make lint happy.
 | 
					
						
							|  |  |  | import { Hero } from './hero'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @Component({}) | 
					
						
							|  |  |  | export class HeroDetailComponent implements OnInit { | 
					
						
							|  |  |  |   @Input() hero: Hero; | 
					
						
							|  |  |  |   bogus: Params; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   constructor( | 
					
						
							|  |  |  |     private heroService: HeroService, | 
					
						
							| 
									
										
										
										
											2016-09-25 20:56:12 -05:00
										 |  |  |     private route: ActivatedRoute, | 
					
						
							|  |  |  |     private location: Location | 
					
						
							|  |  |  |   ) {} | 
					
						
							| 
									
										
										
										
											2016-08-17 13:31:40 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   ngOnInit() {} | 
					
						
							|  |  |  | } |