Thursday, 24 September 2015

BackboneJS - Sync

It is used to persist the state of the model to the server.
Following table lists down the methods which can be used to manipulate the BackboneJS-Sync:
S.N.Methods & Description
1Backbone.sync
It persist the state of the model to the server.
2Backbone.ajax
It defines the custom ajax function.
3Backbone.emulateHTTP
If your web server does not support, REST or HTTP approach then turn on the Backbone.emulateHTTP.
4Backbone.emulateJSON
It is used to handle the requests encoded with application/json by setting the method to true.

No comments:

Post a Comment