vendredi 8 avril 2016

Ember data subdocuments

Other questions on this topic are over 3 years old.

I see this documentation on serializers, which seems like the answer, but I can't get it to work. I just want a simple JSON object structure like this:

business-hours : {
    monday: {
        open: “24hr”,
        from: <some time>,
        to: <some time>
    },
    tuesday: {
        open: “closed”,
        from: <some time>,
        to: <some time>
    }
},

What's the move here?




Aucun commentaire:

Enregistrer un commentaire