Backbone.js Sync
Backbone.js Sync is a function that it is called every time, it attempts to read or save a model to the server.
It persists the state of the model to the server.
Following is a list of methods that can be used to manipulate the Backbone.js Sync:
Index |
Method |
Description |
1. |
Backbone.sync |
It persists the state of the model to the server. |
2. |
Backbone.emulateHTTP |
If web server does not support REST or HTTP approach then turn on the Backbone.emulateHTTP. |
3. |
Backbone.emulatejson |
It is used to handle the requests encoded with application/JSON by setting the method to true. |
4. |
Backbone.AJAX |
It is used to specify the custom AJAX function. |
|