2015-10-31 00:09:57 -04:00
|
|
|
// #docregion
|
2016-05-03 08:06:32 -04:00
|
|
|
import { Component } from '@angular/core';
|
2015-10-23 22:05:17 -04:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'my-app',
|
|
|
|
// #docregion template
|
|
|
|
template: `
|
|
|
|
<h1>{{title}}</h1>
|
|
|
|
<h2>My favorite hero is: {{myHero}}</h2>
|
|
|
|
`
|
|
|
|
// #enddocregion template
|
|
|
|
})
|
|
|
|
export class AppComponent {
|
|
|
|
title = 'Tour of Heroes';
|
|
|
|
myHero = 'Windstorm';
|
|
|
|
}
|