| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { Component } from '@angular/core'; | 
					
						
							|  |  |  | import { upgradeAdapter } from './upgrade_adapter'; | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | const HeroDetail = upgradeAdapter.upgradeNg1Component('heroDetail'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'my-container', | 
					
						
							|  |  |  |   template: `
 | 
					
						
							|  |  |  |     <h1>Tour of Heroes</h1> | 
					
						
							|  |  |  |     <hero-detail></hero-detail> | 
					
						
							|  |  |  |   `,
 | 
					
						
							|  |  |  |   directives: [HeroDetail] | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class ContainerComponent { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |