15 lines
314 B
TypeScript
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
|