Can you have default values for model? If yes, how?
Answer / Hariom Akash Sahay
Yes, Backbone Models can have default values. This is achieved by initializing the model with default attributes when creating a new instance. For example: `var myModel = new MyModel({defaultAttribute: 'value'});`
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the difference between backbone.noconflict and backbone.$ ?
What is the use of backbonejs route?
When you require backbone.js?
What are the functionalities of parse in backbone.js?
How can you use underscore templates in backbone.js views?
How to create a model in backbone.js?
What is backbone.js router is used for ?
What is the function of tojson ?
Explain what is view in backbone.js?
What are the tips/tricks/practice, with respect to model, you follow?
What are the disadvantages of backbone.js?
What is collection in backbone.js?