Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 394 Bytes
import { Component, Input, Output } from "../angular-decorators";
import template from "../templates/heroDetail.html";
@Component("heroDetail", { template })
export class HeroDetail
@Input() hero;
@Output() onDelete;
@Output() onUpdate;
this.onDelete({ hero: this.hero });
update(prop, value)
this.onUpdate({ hero: this.hero, prop, value });
You can’t perform that action at this time.