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