How can you set attributes of a model?
Answer / Ruchir Srivastava
In Backbone.js, you can set attributes of a model by directly assigning the attribute name to its value. For example: `myModel.set('attributeName', 'attributeValue')`.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the architecture of backbone.js?
How can you write the business logic in model?
How to use to backbone.ajax function?
What is backbone.js router is used for ?
What is view in backbone.js?
What is the use of backbone.js router?
How the actions performed on model is translated to restful operations? Give an example?
What is the function of tojson ?
What are the main components of backbone.js ?
What is the difference between the properties “id” and “cid” on a model object in backbone js?
What is backbone.js? How does it help developers?
How can you attach listeners to events in a view?