19 lines
379 B
TypeScript
19 lines
379 B
TypeScript
// #docplaster
|
|
// #docregion metadata
|
|
import {Component} from 'angular2/core';
|
|
|
|
@Component({
|
|
selector: 'hero-view',
|
|
template:
|
|
'<h1>Hero: {{getName()}}</h1>'
|
|
})
|
|
// #docregion appexport
|
|
// #docregion class
|
|
export class HeroComponent {
|
|
title = 'Hero Detail';
|
|
getName() {return 'Windstorm';}
|
|
}
|
|
// #enddocregion class
|
|
// #enddocregion appexport
|
|
// #enddocregion metadata
|