ガイドは、バッククォートで書かれた計算されたプロパティを示しています。それらが必要かどうかはわかりません。
これはできますか:
fullName: Ember.computed('firstName', 'lastName', function() {
return `${this.get('firstName')} ${this.get('lastName')}`;
})
次のように書き換えます。
fullName: Ember.computed('firstName', 'lastName', function() {
return this.get('firstName') + ' ' + this.get('lastName');
})
?
私にとって、それはそれほどあいまいではありません。各方法の長所/短所は何ですか?