- BackboneJS Tutorial
- BackboneJS - Home
- BackboneJS - Overview
- BackboneJS - Environment Setup
- BackboneJS - Applications
- BackboneJS - Events
- BackboneJS - Model
- BackboneJS - Collection
- BackboneJS - Router
- BackboneJS - History
- BackboneJS - Sync
- BackboneJS - View
- BackboneJS - Utility
- BackboneJS Useful Resources
- BackboneJS - Quick Guide
- BackboneJS - Resources
- BackboneJS - Discussion
BackboneJS - Sync
It is used to persist the state of the model to the server.
The following table lists down the methods which can be used to manipulate the BackboneJS-Sync −
S.No. | Methods & Description |
---|---|
1 |
Backbone.sync
It persists the state of the model to the server. |
2 |
Backbone.ajax It defines the custom ajax function. |
3 |
Backbone.emulateHTTP
If your web server does not support REST or HTTP approach, then turn on the Backbone.emulateHTTP. |
4 |
Backbone.emulateJSON
It is used to handle the requests encoded with application/json by setting the method to true. |
Advertisements