I have an EmberJS model, which is initialized from a JSON object. This JSON object used to contain an id
variable, but now its name is changed. Is there a way to tell the model what to use as id
from the JSON? There are functions which use the model's id
variable, so the best way would be to set id
to be a reference of one of the model's variable.
Aucun commentaire:
Enregistrer un commentaire