Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How the actions performed on model is translated to restful operations? Give an example?

Answer Posted / Sona Singh

In Backbone, when you perform actions like creating, updating, or deleting a model, these actions are automatically translated into corresponding RESTful HTTP requests. For example, calling `myModel.save()` would result in a PUT (or POST if the model is new) request being sent to the server with the JSON data of the model. If you were to delete the model using `myModel.destroy()`, a DELETE request would be sent instead.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you track any change in model attribute value?

6


Which is the latest stable version of backbone.js and what is its released date?

2