Backbone.JS Save()

The Backbone.JS Save() model is used to read and save the data of the model every time when it is called.

Syntax:

Model.Save (attributes, options)   

Parameters: attributes: This parameter is used to specify the properties of a model. options: This parameter is used to specify the options like id, name etc. for a model.

Example:

  

  
Example  
  
  
  
  
  
  

Output:

create: HELLO WORLD. Welcome.
update: Hello World. Welcome.

Explanation: In the above example, the properties of a model are created, updated and saved.

Please follow and like us:
Content Protection by DMCA.com