Answer Posted / Manju Hembrom
To set attributes for a Backbone.js model, first create a new instance of the model and then call the set method with the attribute name as the first argument and the value as the second: var myModel = new MyModel(); myModel.set('name', 'John');
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers