dimanche 18 septembre 2016

Where i should put data managers

What is good practice for put data persisters in one place. For now i put model.save() in every controller when i save this object. But i think it is not good resolve, because it can make code duplicates. I found in ember we have services http://ift.tt/2cvMW0v, but according documentation it is place for not use data store.

My question is what is best practice for not duplicate data persist code?




Aucun commentaire:

Enregistrer un commentaire