2017-06-19 23:32:30 -07:00
|
|
|
// #docplaster
|
|
|
|
|
// #docregion
|
|
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
import { Hero, HEROES } from './hero';
|
|
|
|
|
|
|
|
|
|
@Component({
|
2017-08-22 21:31:15 +02:00
|
|
|
selector: 'app-root',
|
2017-06-19 23:32:30 -07:00
|
|
|
templateUrl: './app.component.html',
|
|
|
|
|
styleUrls: ['./app.component.css']
|
|
|
|
|
})
|
|
|
|
|
// #docregion class, class-skeleton
|
|
|
|
|
export class AppComponent {
|
|
|
|
|
// #enddocregion class-skeleton
|
|
|
|
|
title = 'Authors Style Guide Sample';
|
|
|
|
|
heroes = HEROES;
|
|
|
|
|
selectedHero: Hero;
|
|
|
|
|
|
|
|
|
|
onSelect(hero: Hero): void {
|
|
|
|
|
this.selectedHero = hero;
|
|
|
|
|
}
|
|
|
|
|
// #docregion class-skeleton
|
|
|
|
|
}
|
|
|
|
|
// #enddocregion class, class-skeleton
|