Backbone.Collection.remove removes a model from a collection in the front end. Is there a way to make the changes persist to the backend? ie. I want to do a DELETE request on the collection's URL and pass in the model. How would I do that?
Backbone.Collection.remove removes a model from a collection in the front end. Is there a way to make the changes persist to the backend? ie. I want to do a DELETE request on the collection's URL and pass in the model. How would I do that?
Share Improve this question edited Apr 16, 2012 at 6:04 mu is too short 435k71 gold badges858 silver badges818 bronze badges asked Apr 16, 2012 at 5:59 egidraegidra 9,08721 gold badges67 silver badges92 bronze badges1 Answer
Reset to default 11model.destroy();
will remove the model from the collection and make a DELETE
request to the server.
http://backbonejs/#Model-destroy