In my model I have an arbitrary hash (DS.attr()) whose properties are returned dasherized. Example,
model
DS.attr()
{ '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