Javatpoint Logo
Javatpoint Logo


Backbone.sync is a function that is called every time when Backbone.js tries to read or save a model to the server. It is used to display the state of the model.


Parameter explanation:

method: It specifies the CRUD methods i.e. create, read, update and delete.

model: It specifies the model to be saved or collection to be read.

options: It displays success or error message depending on the method succeeded.

Let's take an example.

See this example:

Test it Now


Save the above code in sync.html file and open this file in a new browser.

BackboneJS sync Model

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA