| 
									
										
										
										
											2015-12-12 22:01:46 -08:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { Component } from '@angular/core' | 
					
						
							| 
									
										
										
										
											2015-12-12 22:01:46 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'hero-birthday', | 
					
						
							|  |  |  |   // #docregion hero-birthday-template
 | 
					
						
							|  |  |  |   template: `<p>The hero's birthday is {{ birthday | date }}</p>` | 
					
						
							|  |  |  |   // #enddocregion hero-birthday-template
 | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class HeroBirthday { | 
					
						
							|  |  |  |   birthday = new Date(1988,3,15); // April 15, 1988
 | 
					
						
							|  |  |  | } |