import { Component, HostBinding } from '@angular/core';
import { Hero } from './hero';
import { HeroAppMainComponent } from './hero-app-main.component';
// #docregion
@Component({
  selector: 'hero-app',
  template: `
    
Tour of Heroes
    `,
  styles: ['h1 { font-weight: normal; }'],
  directives: [HeroAppMainComponent]
})
export class HeroAppComponent {
// #enddocregion
  hero = new Hero(
    'Human Torch',
    ['Mister Fantastic', 'Invisible Woman', 'Thing']
  );
  @HostBinding('class') get themeClass() {
    return 'theme-light';
  }
// #docregion
}
// #enddocregion