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...


Can you have default values for model? If yes, how?



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

Post New Answer

More Backbone.js Interview Questions

What are the difference between backbone.noconflict and backbone.$ ?

1 Answers  


What is the use of backbonejs route?

1 Answers  


When you require backbone.js?

1 Answers  


What are the functionalities of parse in backbone.js?

1 Answers  


How can you use underscore templates in backbone.js views?

1 Answers  


How to create a model in backbone.js?

1 Answers  


What is backbone.js router is used for ?

1 Answers  


What is the function of tojson ?

1 Answers  


Explain what is view in backbone.js?

1 Answers  


What are the tips/tricks/practice, with respect to model, you follow?

1 Answers  


What are the disadvantages of backbone.js?

1 Answers  


What is collection in backbone.js?

1 Answers  


Categories