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


Explain model with reference to ember.js. Also, tell how it is defined in it.



Explain model with reference to ember.js. Also, tell how it is defined in it...

Answer / Avaneendra Pathak

In Ember.js, a Model represents the data or business logic of an application. It defines the properties and behavior for an object that can be serialized and deserialized. To define a model, use Ember Data's built-in `DS.Model` class by extending it with your custom properties and methods.nnFor example:n```javascriptnimport DS from '@ember-data/data';nnexport default DS.Model.extend({n name: DS.attr('string'), // property definition for a string type attribute called 'name'n});```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ember.js Interview Questions

Is it possible for the users to modify the objects without changing the model of model under concern?

1 Answers  


How to install ember using npm?

1 Answers  


what is ember-data ?

1 Answers  


What is the use of a template in ember.js?

1 Answers  


what is enumerables in ember.js ?

1 Answers  


What is the component in ember.js? How is it defined?

1 Answers  


Which steps are used to create an app in ember.js?

1 Answers  


Explain how ember applications are structured?

1 Answers  


Which function in ember.js is used to test whether the value is an array or not?

1 Answers  


What are the benefits of using ember.js?

1 Answers  


what is ember.arraycontroller and what is the advantage of it ?

1 Answers  


Mention the template components used in ember.js ?

1 Answers  


Categories