| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | // #docregion metadata
 | 
					
						
							| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { Component } from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'hero-view', | 
					
						
							| 
									
										
										
										
											2016-11-03 01:37:55 -07:00
										 |  |  |   template: '<h1>{{title}}: {{getName()}}</h1>' | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | }) | 
					
						
							| 
									
										
										
										
											2016-11-13 14:09:28 -08:00
										 |  |  | // #docregion appexport, class
 | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | export class HeroComponent { | 
					
						
							|  |  |  |   title = 'Hero Detail'; | 
					
						
							| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  |   getName() {return 'Windstorm'; } | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2016-11-13 14:09:28 -08:00
										 |  |  | // #enddocregion appexport, class
 | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | // #enddocregion metadata
 |