我刚刚将我的Ember应用程序升级到最新版本,但在测试其功能时,某些操作无效.我之前在旧版本中运行良好的代码如下.
export default Ember.Controller.extend({
needs: 'sales-order',
actions: {
showModal: function(mode){
this.get('controllers.sales-order').send('showModal', mode);
}
}
});
Run Code Online (Sandbox Code Playgroud)
看起来" 需求 "是折旧的.