I’m trying to figure out how to make a backbone.js Collection stay synchronized with a server at the end of an url.
I would like to be able to add a model to a collection and have the collection automatically do a POST with the new model to the collection url…
I cant seam to find the functionality for this anywhere.
Models are never saved to the collection endpoint, they have their own url property to configure where they are saved.
Instead of calling
addon the collection thensaveon the model, you can just callcreateon the collection and it’ll do both, but you must configure the model’s URL.Documentation for create