jeudi 3 mai 2018

Ember: Serialize arbitrary hash key names

In my model I have an arbitrary hash (DS.attr()) whose properties are returned dasherized. Example,

{
  'lorem-ipsum': 'Some value',
  'dolor-sit': 'Some value'
}

I want the key names to be camelCased. How can I achieve this?




Aucun commentaire:

Enregistrer un commentaire