当我使用此模型时,Dropdown有空标签。我将标签路径设置为type。我的服务器在json中返回2个模型,我看到2个下拉项(空)
export default DS.Model.extend({
type: DS.attr('string')
});
{{view "select" prompt="Account type" content=model optionLabelPath="type" optionValuePath="id"}}
答案 0 :(得分:0)
应该是:
{{view" select" prompt ="帐户类型" content = model optionLabelPath =" content.type" optionValuePath =" content.id"}}