2016-04-28 00:52:20 -07:00

15 lines
314 B
TypeScript

// #docregion
import {Component, OnInit} from 'angular2/core';
// #docregion example
@Component({
selector: 'toh-hero-button',
template: `<button>OK<button>`
})
export class HeroButtonComponent implements OnInit {
ngOnInit() {
console.log('The component is initialized');
}
}
// #enddocregion example