Following is a list of methods that can be used to manipulate the Backbone.js Model:
||It extends Backbone.model class while creating your own backbone model.
||When model instance is created, the class's constructor gets called and it is invoked
By defining initialize function when model is created.
||It gets value of an attribute on the model.
||It sets the value of an attribute in the model.
||It is similar to get function, but returns the html-escaped version of a model's attribute.
||It returns true, if attribute value defined with non-null value or non-undefined value.
||It removes an attribute from a backbone model.
||It removes all attributes, including id attribute from a backbone model.
||It is used to identify model entity uniquely.It can be set manually when model is created or populated and saved on the server.
||It defines the model's unique identifier which contains the name of the class member that will be used as id.
||It is auto generated client id by backbone which uniquely identify the model on the client.
||It is used to define the property of a model.
||It changes all the attributes that have changed after setting the attributes using set() method.
||It sets a default value to a model and simply states that if the user doesn't specify any data, the model won't fall with empty property.
||It returns copy of the attributes as an object for JSON stringification.
||It is used to communicate with the server and to represents state of a model.
||It accepts the data from the server by delegating sync() method in the model.
||It saves the data of the model by delegating to sync() method which reads and save the model every time when backbone calls it.
||It is used to destroy or remove the model from the server by using the Backbone.sync method which releases http "delete" request.
||If input is invalid, it returns specified error message or if input is valid, it doesn't specify anything and simply display the result.
||It display validation error, if validation fails or after the invalid event is triggered.
||It checks the model state by using validate() method and also checks validations for each attributes.
||It is used for the instance of the model and returns URL where model's resource is located.
||It enables the URL function by using the model id to generate the URL.
||The returns the model?s data by passing through the response object and represents the data in JSON format.
||It is used to create deep copy of a model or to copy one model object to another object.
||It returns TRUE, if the attributes have changed since the last set.
||It determines whether the model is a new or existing one.
||It returns the model's attributes that have changed since the last set or becomes false, if there is no attribute.
||It determines the previous value of the changed attribute.
||It returns state of the all attributes prior to last change event.