2015-12-12 22:01:46 -08:00
|
|
|
// Version #1
|
|
|
|
// #docregion
|
2016-04-27 11:28:22 -07: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
|
|
|
|
}
|
|
|
|
// #enddocregion
|