我的环境版本如下: 版本:1.13.1 节点:0.12.4 npm:2.12.1 安装ember-cli-jstree时,我以这种方式使用组件:
//hbs file
{{ember-jstree
actionReceiver=jstreeActionReceiver
data=data
eventDidBecomeReady="handleTreeDidBecomeReady"
}}
and
//controller
App.MyController = Ember.Controller.extend({
jstreeActionReceiver: null,
data:[],
action:{
handleTreeDidBecomeReady:function(){
console.log(this.get('jstreeActionReceiver'));
}
}
})
jstreeActionReceiver为空,那么我犯了什么错误?