2015-12-12 22:01:46 -08:00
|
|
|
// #docregion
|
2016-06-08 01:06:25 +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
|
|
|
|
})
|
2016-06-13 00:41:33 +02:00
|
|
|
export class HeroBirthdayComponent {
|
2016-06-08 01:06:25 +02:00
|
|
|
birthday = new Date(1988, 3, 15); // April 15, 1988
|
2015-12-12 22:01:46 -08:00
|
|
|
}
|