【发布时间】:2018-07-24 07:14:39
【问题描述】:
我像这样将关闭操作传递给我的组件:
{{deployment-timeline loadMoreDeployments=(action "loadMoreDeployments")}}
我应该如何在我的组件中调用它?
actions:{
loadMoreDeployments(){
// which one of the following three invocations is best?
this.attrs.loadMoreDeployments();
this.get('loadMoreDeployments')();
this.loadMoreDeployments();
}
}
【问题讨论】:
标签: javascript ember.js ember-components