Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
210 B
79
Indexable
Never
export class HeroesComponent {
  /*hero: Hero = {
    id: 1,
    name: 'Windstorm'
  };*/
  heroes = HEROES;
  selectedHero?: Hero;

  onSelect(hero: Hero): void {
    this.selectedHero = hero;
  }
}