mardi 31 mars 2015

Backbone.js updating a collection in bulk

I have a collection of objects which will be updated in bulk (not necessarily all at the same time, but more than one).


Therefore I need to send updates to the server in bulk (i.e. not one request for each updated object), and I need to do partial updates (i.e. only update objects which have changed).


What is a clean, elegant way to achieve this?


I have researched and tried a few things, but all solutions are rather kludgy and over-complicated - which is unacceptable for a framework which is meant to simplify these sort of things.


Surely there is a decent way to do such a common thing in Backbone. Or should I use another framework e.g. Angular JS?





Aucun commentaire:

Enregistrer un commentaire