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


How to create a model in backbone.js?



How to create a model in backbone.js?..

Answer / Zakir Abbas Baaqri

A Backbone Model can be created by extending the Backbone.Model constructor and defining its attributes, for example: var MyModel = Backbone.Model.extend({})nTo set attributes, you can use the set method: myModel.set('attributeName', 'attributeValue')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Backbone.js Interview Questions

When and by whom the backbone.js was released?

1 Answers  


Describe backbone events?

1 Answers  


What are the disadvantages of backbone.js?

1 Answers  


What is the most powerful capabilities of the modelbinder ?

1 Answers  


What is models in backbone.js?

1 Answers  


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

1 Answers  


What is backbone events ?

1 Answers  


What is the function of setelement?

1 Answers  


In backbone view, what is the use of setelement ?

1 Answers  


Explain what is converter in backbone.js?

1 Answers  


How do I fetch a single model in Backbone?

1 Answers  


What is the use of backbone.js router?

1 Answers  


Categories