dimanche 15 novembre 2015

EmberJS: update model just after request

I'm using EmberJS 1.13.1 with EmberData 1.13.5.

I have some model with field url. And url in this field is relative, smth like /media/picture.png. I need to add host-part to this adsress. But items of current model can be added to store in different ways, so the best will be update this field just after it have been added to the store. Is it possible? Maybe add some hook somewhere?

Aucun commentaire:

Enregistrer un commentaire