Home » Backbone.js model.save()

Backbone.js model.save()

by Online Tutorials Library

Backbone.js model.save()

The Backbone.js save model is used to save the data of the model by delegating the sync() method. It reads and saves the model every time when it is called.

Syntax:

Parameter explanation:

attributes: It is used to define the property of a model.

options: It accepts parameters like id, name etc. which are used for a model.

Let’s take an example.

See this example:

You may also like