How to represent arrays within ember-data models?

前端 未结 7 1153
不思量自难忘°
不思量自难忘° 2020-12-05 00:29

Is it necessary to use DS.hasMany pointing to a DS.Model when a model contains an array? Even if the array elements are not really models (no IDs o

7条回答
  •  情话喂你
    2020-12-05 00:57

    A bit late to the game here but here's a jFiddle I found that is a simple implementation of declaring a new array codec

    http://jsfiddle.net/Nook/ab2Xf/

提交回复
热议问题