有javascript类:
export class PartyDetails extends MeteorComponent {
constructor(params:RouteParams) {
super();
}
get isOwner(): boolean {
if (this.party && this.user) {
return this.user._id === this.party.owner;
}
return false;
}
}
get
get isOwner()
的目的是什么?