yihong0618 和朋友们的频道 头像

消息来源频道

yihong0618 和朋友们的频道

@hyi0618

频道8,612 位成员公开可见0 人在线

yihong0618 和朋友们的频道

成员规模8,612 位成员
在线情况0 人在线
消息总数10,129 条消息
浏览量总数3,296,000 次浏览

在这个频道里搜索消息……

t.me/hyi0618

TIL:
Link: https://github.com/thoughtbot/til/blob/main/ember/property-brace-expansion.md
📌 Property Brace Expansion
Say you want to observe multiple properties on a single object in a computed
property:
name: function() {
return this.get('person.firstName') + ' ' + this.get('person.lastName');
}.property('person.firstName', 'person.lastName')
As of Ember 1.4, you can use property brace expansion for an abbreviated syntax:
name: function() {
return this.get('person.firstName') + ' ' + this.get('person.lastName');
}.property('person.{firstName,lastName}')