把手如下:- {{#控制器中的每个类别}}
{{view Ember.Select
contentBinding="App.testsController.content"
optionLabelPath="content.category"
selectionBinding="content.myVal"
}}
{{view Ember.Select
contentBinding="App.testsController.content"
optionLabelPath="content.type"
}}
{{view Ember.Select
contentBinding="App.testsController.content"
selectionBinding="content.myVal"
}}
controller is :-
App.TestsController = Ember.ArrayController.extend({
content: []
});
model is :-
App.Test = Ember.Object.extend(
category: null
type: null
#operands: null
#defaults: null
)
在视图中,我无法获取值类别和类型。它没有显示。如何解决问题?