0
所以我想在ember中使用ember数据构建下面的select下拉列表,并且API将使用JSON API规范。下面是一个截图例子 JSON API组和子组EmberJS
所以我会在服务模式,状态下面
应用程序/模型/ service.js
category: DS.belongsTo('category'),
subCategory: DS.belongsTo('sub-category')
应用程序/模型/ category.js
service: DS.hasMany('service'),
subCategory: DS.belongsTo('category')
app/model/category.js
service: DS.hasMany('service'),
category: DS.belongsTo('sub-category')
我觉得我错过了什么?思考